home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Hardware / PowerManager DDK 1.0f1 / Interfaces&Libraries / Interfaces / Errors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-08  |  77.0 KB  |  1,704 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Errors.h
  3.  
  4.      Contains:    OSErr codes.
  5.  
  6.      Version:    Mac OS 8
  7.  
  8.      DRI:        Nick Kledzik
  9.  
  10.      Copyright:    © 1985-1999 by Apple Computer, Inc., all rights reserved
  11.  
  12.      Warning:    *** APPLE INTERNAL USE ONLY ***
  13.                  This file may contain unreleased API's
  14.  
  15.      BuildInfo:    Built by:            Scott Johnson
  16.                  On:                    10/8/99 11:26 AM
  17.                  With Interfacer:    3.0d13   (MPW PowerPC)
  18.                  From:                Errors.i
  19.                      Revision:        125a1
  20.                      Dated:            9/15/99
  21.                      Last change by:    JRH
  22.                      Last comment:    merging in a BG change from TOT. <137> 9/14/99 BG [2385729] Add
  23.  
  24.      Bugs:        Report bugs to Radar component "System Interfaces", "Latest"
  25.                  List the version information (from above) in the Problem Description.
  26.  
  27. */
  28. #ifndef __ERRORS__
  29. #define __ERRORS__
  30.  
  31. #ifndef __CONDITIONALMACROS__
  32. #include <ConditionalMacros.h>
  33. #endif
  34.  
  35.  
  36.  
  37.  
  38. #if PRAGMA_ONCE
  39. #pragma once
  40. #endif
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45.  
  46. #if PRAGMA_IMPORT
  47. #pragma import on
  48. #endif
  49.  
  50. #if PRAGMA_STRUCT_ALIGN
  51.     #pragma options align=mac68k
  52. #elif PRAGMA_STRUCT_PACKPUSH
  53.     #pragma pack(push, 2)
  54. #elif PRAGMA_STRUCT_PACK
  55.     #pragma pack(2)
  56. #endif
  57.  
  58. enum {
  59.     paramErr                    = -50,                            /*error in user parameter list*/
  60.     noHardwareErr                = -200,                            /*Sound Manager Error Returns*/
  61.     notEnoughHardwareErr        = -201,                            /*Sound Manager Error Returns*/
  62.     userCanceledErr                = -128,
  63.     qErr                        = -1,                            /*queue element not found during deletion*/
  64.     vTypErr                        = -2,                            /*invalid queue element*/
  65.     corErr                        = -3,                            /*core routine number out of range*/
  66.     unimpErr                    = -4,                            /*unimplemented core routine*/
  67.     SlpTypeErr                    = -5,                            /*invalid queue element*/
  68.     seNoDB                        = -8,                            /*no debugger installed to handle debugger command*/
  69.     controlErr                    = -17,                            /*I/O System Errors*/
  70.     statusErr                    = -18,                            /*I/O System Errors*/
  71.     readErr                        = -19,                            /*I/O System Errors*/
  72.     writErr                        = -20,                            /*I/O System Errors*/
  73.     badUnitErr                    = -21,                            /*I/O System Errors*/
  74.     unitEmptyErr                = -22,                            /*I/O System Errors*/
  75.     openErr                        = -23,                            /*I/O System Errors*/
  76.     closErr                        = -24,                            /*I/O System Errors*/
  77.     dRemovErr                    = -25,                            /*tried to remove an open driver*/
  78.     dInstErr                    = -26                            /*DrvrInstall couldn't find driver in resources*/
  79. };
  80.  
  81. enum {
  82.     abortErr                    = -27,                            /*IO call aborted by KillIO*/
  83.     iIOAbortErr                    = -27,                            /*IO abort error (Printing Manager)*/
  84.     notOpenErr                    = -28,                            /*Couldn't rd/wr/ctl/sts cause driver not opened*/
  85.     unitTblFullErr                = -29,                            /*unit table has no more entries*/
  86.     dceExtErr                    = -30,                            /*dce extension error*/
  87.     slotNumErr                    = -360,                            /*invalid slot # error*/
  88.     gcrOnMFMErr                    = -400,                            /*gcr format on high density media error*/
  89.     dirFulErr                    = -33,                            /*Directory full*/
  90.     dskFulErr                    = -34,                            /*disk full*/
  91.     nsvErr                        = -35,                            /*no such volume*/
  92.     ioErr                        = -36,                            /*I/O error (bummers)*/
  93.     bdNamErr                    = -37,                            /*there may be no bad names in the final system!*/
  94.     fnOpnErr                    = -38,                            /*File not open*/
  95.     eofErr                        = -39,                            /*End of file*/
  96.     posErr                        = -40,                            /*tried to position to before start of file (r/w)*/
  97.     mFulErr                        = -41,                            /*memory full (open) or file won't fit (load)*/
  98.     tmfoErr                        = -42,                            /*too many files open*/
  99.     fnfErr                        = -43,                            /*File not found*/
  100.     wPrErr                        = -44,                            /*diskette is write protected.*/
  101.     fLckdErr                    = -45                            /*file is locked*/
  102. };
  103.  
  104. enum {
  105.     vLckdErr                    = -46,                            /*volume is locked*/
  106.     fBsyErr                        = -47,                            /*File is busy (delete)*/
  107.     dupFNErr                    = -48,                            /*duplicate filename (rename)*/
  108.     opWrErr                        = -49,                            /*file already open with with write permission*/
  109.     rfNumErr                    = -51,                            /*refnum error*/
  110.     gfpErr                        = -52,                            /*get file position error*/
  111.     volOffLinErr                = -53,                            /*volume not on line error (was Ejected)*/
  112.     permErr                        = -54,                            /*permissions error (on file open)*/
  113.     volOnLinErr                    = -55,                            /*drive volume already on-line at MountVol*/
  114.     nsDrvErr                    = -56,                            /*no such drive (tried to mount a bad drive num)*/
  115.     noMacDskErr                    = -57,                            /*not a mac diskette (sig bytes are wrong)*/
  116.     extFSErr                    = -58,                            /*volume in question belongs to an external fs*/
  117.     fsRnErr                        = -59,                            /*file system internal error:during rename the old entry was deleted but could not be restored.*/
  118.     badMDBErr                    = -60,                            /*bad master directory block*/
  119.     wrPermErr                    = -61,                            /*write permissions error*/
  120.     dirNFErr                    = -120,                            /*Directory not found*/
  121.     tmwdoErr                    = -121,                            /*No free WDCB available*/
  122.     badMovErr                    = -122,                            /*Move into offspring error*/
  123.     wrgVolTypErr                = -123,                            /*Wrong volume type error [operation not supported for MFS]*/
  124.     volGoneErr                    = -124                            /*Server volume has been disconnected.*/
  125. };
  126.  
  127. enum {
  128.     fidNotFound                    = -1300,                        /*no file thread exists.*/
  129.     fidExists                    = -1301,                        /*file id already exists*/
  130.     notAFileErr                    = -1302,                        /*directory specified*/
  131.     diffVolErr                    = -1303,                        /*files on different volumes*/
  132.     catChangedErr                = -1304,                        /*the catalog has been modified*/
  133.     desktopDamagedErr            = -1305,                        /*desktop database files are corrupted*/
  134.     sameFileErr                    = -1306,                        /*can't exchange a file with itself*/
  135.     badFidErr                    = -1307,                        /*file id is dangling or doesn't match with the file number*/
  136.     notARemountErr                = -1308,                        /*when _Mount allows only remounts and doesn't get one*/
  137.     fileBoundsErr                = -1309,                        /*file's EOF, offset, mark or size is too big*/
  138.     fsDataTooBigErr                = -1310,                        /*file or volume is too big for system*/
  139.     volVMBusyErr                = -1311,                        /*can't eject because volume is in use by VM*/
  140.     badFCBErr                    = -1327,                        /*FCBRecPtr is not valid*/
  141.     envNotPresent                = -5500,                        /*returned by glue.*/
  142.     envBadVers                    = -5501,                        /*Version non-positive*/
  143.     envVersTooBig                = -5502,                        /*Version bigger than call can handle*/
  144.     fontDecError                = -64,                            /*error during font declaration*/
  145.     fontNotDeclared                = -65,                            /*font not declared*/
  146.     fontSubErr                    = -66,                            /*font substitution occurred*/
  147.     fontNotOutlineErr            = -32615,                        /*bitmap font passed to routine that does outlines only*/
  148.     firstDskErr                    = -84,                            /*I/O System Errors*/
  149.     lastDskErr                    = -64,                            /*I/O System Errors*/
  150.     noDriveErr                    = -64,                            /*drive not installed*/
  151.     offLinErr                    = -65,                            /*r/w requested for an off-line drive*/
  152.     noNybErr                    = -66                            /*couldn't find 5 nybbles in 200 tries*/
  153. };
  154.  
  155. enum {
  156.     noAdrMkErr                    = -67,                            /*couldn't find valid addr mark*/
  157.     dataVerErr                    = -68,                            /*read verify compare failed*/
  158.     badCksmErr                    = -69,                            /*addr mark checksum didn't check*/
  159.     badBtSlpErr                    = -70,                            /*bad addr mark bit slip nibbles*/
  160.     noDtaMkErr                    = -71,                            /*couldn't find a data mark header*/
  161.     badDCksum                    = -72,                            /*bad data mark checksum*/
  162.     badDBtSlp                    = -73,                            /*bad data mark bit slip nibbles*/
  163.     wrUnderrun                    = -74,                            /*write underrun occurred*/
  164.     cantStepErr                    = -75,                            /*step handshake failed*/
  165.     tk0BadErr                    = -76,                            /*track 0 detect doesn't change*/
  166.     initIWMErr                    = -77,                            /*unable to initialize IWM*/
  167.     twoSideErr                    = -78,                            /*tried to read 2nd side on a 1-sided drive*/
  168.     spdAdjErr                    = -79,                            /*unable to correctly adjust disk speed*/
  169.     seekErr                        = -80,                            /*track number wrong on address mark*/
  170.     sectNFErr                    = -81,                            /*sector number never found on a track*/
  171.     fmt1Err                        = -82,                            /*can't find sector 0 after track format*/
  172.     fmt2Err                        = -83,                            /*can't get enough sync*/
  173.     verErr                        = -84,                            /*track failed to verify*/
  174.     clkRdErr                    = -85,                            /*unable to read same clock value twice*/
  175.     clkWrErr                    = -86,                            /*time written did not verify*/
  176.     prWrErr                        = -87,                            /*parameter ram written didn't read-verify*/
  177.     prInitErr                    = -88,                            /*InitUtil found the parameter ram uninitialized*/
  178.     rcvrErr                        = -89,                            /*SCC receiver error (framing; parity; OR)*/
  179.     breakRecd                    = -90                            /*Break received (SCC)*/
  180. };
  181.  
  182. enum {
  183.                                                                 /*Scrap Manager errors*/
  184.     noScrapErr                    = -100,                            /*No scrap exists error*/
  185.     noTypeErr                    = -102                            /*No object of that type in scrap*/
  186. };
  187.  
  188. enum {
  189.                                                                 /* ENET error codes */
  190.     eLenErr                        = -92,                            /*Length error ddpLenErr*/
  191.     eMultiErr                    = -91                            /*Multicast address error ddpSktErr*/
  192. };
  193.  
  194. enum {
  195.     ddpSktErr                    = -91,                            /*error in soket number*/
  196.     ddpLenErr                    = -92,                            /*data length too big*/
  197.     noBridgeErr                    = -93,                            /*no network bridge for non-local send*/
  198.     lapProtErr                    = -94,                            /*error in attaching/detaching protocol*/
  199.     excessCollsns                = -95,                            /*excessive collisions on write*/
  200.     portNotPwr                    = -96,                            /*serial port not currently powered*/
  201.     portInUse                    = -97,                            /*driver Open error code (port is in use)*/
  202.     portNotCf                    = -98                            /*driver Open error code (parameter RAM not configured for this connection)*/
  203. };
  204.  
  205. enum {
  206.                                                                 /* Memory Manager errors*/
  207.     memROZWarn                    = -99,                            /*soft error in ROZ*/
  208.     memROZError                    = -99,                            /*hard error in ROZ*/
  209.     memROZErr                    = -99,                            /*hard error in ROZ*/
  210.     memFullErr                    = -108,                            /*Not enough room in heap zone*/
  211.     nilHandleErr                = -109,                            /*Master Pointer was NIL in HandleZone or other*/
  212.     memWZErr                    = -111,                            /*WhichZone failed (applied to free block)*/
  213.     memPurErr                    = -112,                            /*trying to purge a locked or non-purgeable block*/
  214.     memAdrErr                    = -110,                            /*address was odd; or out of range*/
  215.     memAZErr                    = -113,                            /*Address in zone check failed*/
  216.     memPCErr                    = -114,                            /*Pointer Check failed*/
  217.     memBCErr                    = -115,                            /*Block Check failed*/
  218.     memSCErr                    = -116,                            /*Size Check failed*/
  219.     memLockedErr                = -117                            /*trying to move a locked block (MoveHHi)*/
  220. };
  221.  
  222. enum {
  223.                                                                 /* Printing Errors */
  224.     iMemFullErr                    = -108,
  225.     iIOAbort                    = -27
  226. };
  227.  
  228.  
  229. enum {
  230.     resourceInMemory            = -188,                            /*Resource already in memory*/
  231.     writingPastEnd                = -189,                            /*Writing past end of file*/
  232.     inputOutOfBounds            = -190,                            /*Offset of Count out of bounds*/
  233.     resNotFound                    = -192,                            /*Resource not found*/
  234.     resFNotFound                = -193,                            /*Resource file not found*/
  235.     addResFailed                = -194,                            /*AddResource failed*/
  236.     addRefFailed                = -195,                            /*AddReference failed*/
  237.     rmvResFailed                = -196,                            /*RmveResource failed*/
  238.     rmvRefFailed                = -197,                            /*RmveReference failed*/
  239.     resAttrErr                    = -198,                            /*attribute inconsistent with operation*/
  240.     mapReadErr                    = -199,                            /*map inconsistent with operation*/
  241.     CantDecompress                = -186,                            /*resource bent ("the bends") - can't decompress a compressed resource*/
  242.     badExtResource                = -185,                            /*extended resource has a bad format.*/
  243.     noMemForPictPlaybackErr        = -145,
  244.     rgnOverflowErr                = -147,
  245.     rgnTooBigError                = -147,
  246.     pixMapTooDeepErr            = -148,
  247.     insufficientStackErr        = -149,
  248.     nsStackErr                    = -149
  249. };
  250.  
  251. enum {
  252.     evtNotEnb                    = 1                                /*event not enabled at PostEvent*/
  253. };
  254.  
  255. /* OffScreen QuickDraw Errors */
  256. enum {
  257.     cMatchErr                    = -150,                            /*Color2Index failed to find an index*/
  258.     cTempMemErr                    = -151,                            /*failed to allocate memory for temporary structures*/
  259.     cNoMemErr                    = -152,                            /*failed to allocate memory for structure*/
  260.     cRangeErr                    = -153,                            /*range error on colorTable request*/
  261.     cProtectErr                    = -154,                            /*colorTable entry protection violation*/
  262.     cDevErr                        = -155,                            /*invalid type of graphics device*/
  263.     cResErr                        = -156,                            /*invalid resolution for MakeITable*/
  264.     cDepthErr                    = -157,                            /*invalid pixel depth */
  265.     rgnTooBigErr                = -500,
  266.     updPixMemErr                = -125,                            /*insufficient memory to update a pixmap*/
  267.     pictInfoVersionErr            = -11000,                        /*wrong version of the PictInfo structure*/
  268.     pictInfoIDErr                = -11001,                        /*the internal consistancy check for the PictInfoID is wrong*/
  269.     pictInfoVerbErr                = -11002,                        /*the passed verb was invalid*/
  270.     cantLoadPickMethodErr        = -11003,                        /*unable to load the custom pick proc*/
  271.     colorsRequestedErr            = -11004,                        /*the number of colors requested was illegal*/
  272.     pictureDataErr                = -11005                        /*the picture data was invalid*/
  273. };
  274.  
  275. enum {
  276.                                                                 /*Sound Manager errors*/
  277.     noHardware                    = noHardwareErr,                /*obsolete spelling*/
  278.     notEnoughHardware            = notEnoughHardwareErr,            /*obsolete spelling*/
  279.     queueFull                    = -203,                            /*Sound Manager Error Returns*/
  280.     resProblem                    = -204,                            /*Sound Manager Error Returns*/
  281.     badChannel                    = -205,                            /*Sound Manager Error Returns*/
  282.     badFormat                    = -206,                            /*Sound Manager Error Returns*/
  283.     notEnoughBufferSpace        = -207,                            /*could not allocate enough memory*/
  284.     badFileFormat                = -208,                            /*was not type AIFF or was of bad format,corrupt*/
  285.     channelBusy                    = -209,                            /*the Channel is being used for a PFD already*/
  286.     buffersTooSmall                = -210,                            /*can not operate in the memory allowed*/
  287.     channelNotBusy                = -211,
  288.     noMoreRealTime                = -212,                            /*not enough CPU cycles left to add another task*/
  289.     siNoSoundInHardware            = -220,                            /*no Sound Input hardware*/
  290.     siBadSoundInDevice            = -221,                            /*invalid index passed to SoundInGetIndexedDevice*/
  291.     siNoBufferSpecified            = -222,                            /*returned by synchronous SPBRecord if nil buffer passed*/
  292.     siInvalidCompression        = -223,                            /*invalid compression type*/
  293.     siHardDriveTooSlow            = -224,                            /*hard drive too slow to record to disk*/
  294.     siInvalidSampleRate            = -225,                            /*invalid sample rate*/
  295.     siInvalidSampleSize            = -226,                            /*invalid sample size*/
  296.     siDeviceBusyErr                = -227,                            /*input device already in use*/
  297.     siBadDeviceName                = -228,                            /*input device could not be opened*/
  298.     siBadRefNum                    = -229,                            /*invalid input device reference number*/
  299.     siInputDeviceErr            = -230,                            /*input device hardware failure*/
  300.     siUnknownInfoType            = -231,                            /*invalid info type selector (returned by driver)*/
  301.     siUnknownQuality            = -232                            /*invalid quality selector (returned by driver)*/
  302. };
  303.  
  304. /*Speech Manager errors*/
  305. enum {
  306.     noSynthFound                = -240,
  307.     synthOpenFailed                = -241,
  308.     synthNotReady                = -242,
  309.     bufTooSmall                    = -243,
  310.     voiceNotFound                = -244,
  311.     incompatibleVoice            = -245,
  312.     badDictFormat                = -246,
  313.     badInputText                = -247
  314. };
  315.  
  316. /* Midi Manager Errors: */
  317. enum {
  318.     midiNoClientErr                = -250,                            /*no client with that ID found*/
  319.     midiNoPortErr                = -251,                            /*no port with that ID found*/
  320.     midiTooManyPortsErr            = -252,                            /*too many ports already installed in the system*/
  321.     midiTooManyConsErr            = -253,                            /*too many connections made*/
  322.     midiVConnectErr                = -254,                            /*pending virtual connection created*/
  323.     midiVConnectMade            = -255,                            /*pending virtual connection resolved*/
  324.     midiVConnectRmvd            = -256,                            /*pending virtual connection removed*/
  325.     midiNoConErr                = -257,                            /*no connection exists between specified ports*/
  326.     midiWriteErr                = -258,                            /*MIDIWritePacket couldn't write to all connected ports*/
  327.     midiNameLenErr                = -259,                            /*name supplied is longer than 31 characters*/
  328.     midiDupIDErr                = -260,                            /*duplicate client ID*/
  329.     midiInvalidCmdErr            = -261                            /*command not supported for port type*/
  330. };
  331.  
  332.  
  333. enum {
  334.     nmTypErr                    = -299                            /*Notification Manager:wrong queue type*/
  335. };
  336.  
  337.  
  338. enum {
  339.     siInitSDTblErr                = 1,                            /*slot int dispatch table could not be initialized.*/
  340.     siInitVBLQsErr                = 2,                            /*VBLqueues for all slots could not be initialized.*/
  341.     siInitSPTblErr                = 3,                            /*slot priority table could not be initialized.*/
  342.     sdmJTInitErr                = 10,                            /*SDM Jump Table could not be initialized.*/
  343.     sdmInitErr                    = 11,                            /*SDM could not be initialized.*/
  344.     sdmSRTInitErr                = 12,                            /*Slot Resource Table could not be initialized.*/
  345.     sdmPRAMInitErr                = 13,                            /*Slot PRAM could not be initialized.*/
  346.     sdmPriInitErr                = 14                            /*Cards could not be initialized.*/
  347. };
  348.  
  349. enum {
  350.     smSDMInitErr                = -290,                            /*Error; SDM could not be initialized.*/
  351.     smSRTInitErr                = -291,                            /*Error; Slot Resource Table could not be initialized.*/
  352.     smPRAMInitErr                = -292,                            /*Error; Slot Resource Table could not be initialized.*/
  353.     smPriInitErr                = -293,                            /*Error; Cards could not be initialized.*/
  354.     smEmptySlot                    = -300,                            /*No card in slot*/
  355.     smCRCFail                    = -301,                            /*CRC check failed for declaration data*/
  356.     smFormatErr                    = -302,                            /*FHeader Format is not Apple's*/
  357.     smRevisionErr                = -303,                            /*Wrong revison level*/
  358.     smNoDir                        = -304,                            /*Directory offset is Nil*/
  359.     smDisabledSlot                = -305,                            /*This slot is disabled (-305 use to be smLWTstBad)*/
  360.     smNosInfoArray                = -306                            /*No sInfoArray. Memory Mgr error.*/
  361. };
  362.  
  363.  
  364. enum {
  365.     smResrvErr                    = -307,                            /*Fatal reserved error. Resreved field <> 0.*/
  366.     smUnExBusErr                = -308,                            /*Unexpected BusError*/
  367.     smBLFieldBad                = -309,                            /*ByteLanes field was bad.*/
  368.     smFHBlockRdErr                = -310,                            /*Error occurred during _sGetFHeader.*/
  369.     smFHBlkDispErr                = -311,                            /*Error occurred during _sDisposePtr (Dispose of FHeader block).*/
  370.     smDisposePErr                = -312,                            /*_DisposePointer error*/
  371.     smNoBoardSRsrc                = -313,                            /*No Board sResource.*/
  372.     smGetPRErr                    = -314,                            /*Error occurred during _sGetPRAMRec (See SIMStatus).*/
  373.     smNoBoardId                    = -315,                            /*No Board Id.*/
  374.     smInitStatVErr                = -316,                            /*The InitStatusV field was negative after primary or secondary init.*/
  375.     smInitTblVErr                = -317,                            /*An error occurred while trying to initialize the Slot Resource Table.*/
  376.     smNoJmpTbl                    = -318,                            /*SDM jump table could not be created.*/
  377.     smReservedSlot                = -318,                            /*slot is reserved, VM should not use this address space.*/
  378.     smBadBoardId                = -319,                            /*BoardId was wrong; re-init the PRAM record.*/
  379.     smBusErrTO                    = -320,                            /*BusError time out.*/
  380.                                                                 /* These errors are logged in the  vendor status field of the sInfo record. */
  381.     svTempDisable                = -32768L,                        /*Temporarily disable card but run primary init.*/
  382.     svDisabled                    = -32640,                        /*Reserve range -32640 to -32768 for Apple temp disables.*/
  383.     smBadRefId                    = -330,                            /*Reference Id not found in List*/
  384.     smBadsList                    = -331,                            /*Bad sList: Id1 < Id2 < Id3 ...format is not followed.*/
  385.     smReservedErr                = -332,                            /*Reserved field not zero*/
  386.     smCodeRevErr                = -333                            /*Code revision is wrong*/
  387. };
  388.  
  389. enum {
  390.     smCPUErr                    = -334,                            /*Code revision is wrong*/
  391.     smsPointerNil                = -335,                            /*LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.*/
  392.     smNilsBlockErr                = -336,                            /*Nil sBlock error (Dont allocate and try to use a nil sBlock)*/
  393.     smSlotOOBErr                = -337,                            /*Slot out of bounds error*/
  394.     smSelOOBErr                    = -338,                            /*Selector out of bounds error*/
  395.     smNewPErr                    = -339,                            /*_NewPtr error*/
  396.     smBlkMoveErr                = -340,                            /*_BlockMove error*/
  397.     smCkStatusErr                = -341,                            /*Status of slot = fail.*/
  398.     smGetDrvrNamErr                = -342,                            /*Error occurred during _sGetDrvrName.*/
  399.     smDisDrvrNamErr                = -343,                            /*Error occurred during _sDisDrvrName.*/
  400.     smNoMoresRsrcs                = -344,                            /*No more sResources*/
  401.     smsGetDrvrErr                = -345,                            /*Error occurred during _sGetDriver.*/
  402.     smBadsPtrErr                = -346,                            /*Bad pointer was passed to sCalcsPointer*/
  403.     smByteLanesErr                = -347,                            /*NumByteLanes was determined to be zero.*/
  404.     smOffsetErr                    = -348,                            /*Offset was too big (temporary error*/
  405.     smNoGoodOpens                = -349,                            /*No opens were successfull in the loop.*/
  406.     smSRTOvrFlErr                = -350,                            /*SRT over flow.*/
  407.     smRecNotFnd                    = -351                            /*Record not found in the SRT.*/
  408. };
  409.  
  410.  
  411. enum {
  412.                                                                 /*Dictionary Manager errors*/
  413.     notBTree                    = -410,                            /*The file is not a dictionary.*/
  414.     btNoSpace                    = -413,                            /*Can't allocate disk space.*/
  415.     btDupRecErr                    = -414,                            /*Record already exists.*/
  416.     btRecNotFnd                    = -415,                            /*Record cannot be found.*/
  417.     btKeyLenErr                    = -416,                            /*Maximum key length is too long or equal to zero.*/
  418.     btKeyAttrErr                = -417,                            /*There is no such a key attribute.*/
  419.     unknownInsertModeErr        = -20000,                        /*There is no such an insert mode.*/
  420.     recordDataTooBigErr            = -20001,                        /*The record data is bigger than buffer size (1024 bytes).*/
  421.     invalidIndexErr                = -20002                        /*The recordIndex parameter is not valid.*/
  422. };
  423.  
  424. enum {
  425.                                                                 /* Edition Mgr errors*/
  426.     editionMgrInitErr            = -450,                            /*edition manager not inited by this app*/
  427.     badSectionErr                = -451,                            /*not a valid SectionRecord*/
  428.     notRegisteredSectionErr        = -452,                            /*not a registered SectionRecord*/
  429.     badEditionFileErr            = -453,                            /*edition file is corrupt*/
  430.     badSubPartErr                = -454,                            /*can not use sub parts in this release*/
  431.     multiplePublisherWrn        = -460,                            /*A Publisher is already registered for that container*/
  432.     containerNotFoundWrn        = -461,                            /*could not find editionContainer at this time*/
  433.     containerAlreadyOpenWrn        = -462,                            /*container already opened by this section*/
  434.     notThePublisherWrn            = -463                            /*not the first registered publisher for that container*/
  435. };
  436.  
  437. enum {
  438.     teScrapSizeErr                = -501,                            /*scrap item too big for text edit record*/
  439.     hwParamErr                    = -502                            /*bad selector for _HWPriv*/
  440. };
  441.  
  442. enum {
  443.                                                                 /*Process Manager errors*/
  444.     procNotFound                = -600,                            /*no eligible process with specified descriptor*/
  445.     memFragErr                    = -601,                            /*not enough room to launch app w/special requirements*/
  446.     appModeErr                    = -602,                            /*memory mode is 32-bit, but app not 32-bit clean*/
  447.     protocolErr                    = -603,                            /*app made module calls in improper order*/
  448.     hardwareConfigErr            = -604,                            /*hardware configuration not correct for call*/
  449.     appMemFullErr                = -605,                            /*application SIZE not big enough for launch*/
  450.     appIsDaemon                    = -606,                            /*app is BG-only, and launch flags disallow this*/
  451.     bufferIsSmall                = -607,                            /*error returns from Post and Accept */
  452.     noOutstandingHLE            = -608,
  453.     connectionInvalid            = -609,
  454.     noUserInteractionAllowed    = -610                            /* no user interaction allowed */
  455. };
  456.  
  457. enum {
  458.                                                                 /* More Process Manager errors */
  459.     wrongApplicationPlatform    = -875                            /* The application could not launch because the required platform is not available */
  460. };
  461.  
  462. /* Thread Manager Error Codes */
  463. enum {
  464.     threadTooManyReqsErr        = -617,
  465.     threadNotFoundErr            = -618,
  466.     threadProtocolErr            = -619
  467. };
  468.  
  469. /*MemoryDispatch errors*/
  470. enum {
  471.     notEnoughMemoryErr            = -620,                            /*insufficient physical memory*/
  472.     notHeldErr                    = -621,                            /*specified range of memory is not held*/
  473.     cannotMakeContiguousErr        = -622,                            /*cannot make specified range contiguous*/
  474.     notLockedErr                = -623,                            /*specified range of memory is not locked*/
  475.     interruptsMaskedErr            = -624,                            /*don’t call with interrupts masked*/
  476.     cannotDeferErr                = -625,                            /*unable to defer additional functions*/
  477.     noMMUErr                    = -626                            /*no MMU present*/
  478. };
  479.  
  480. /* Internal VM error codes returned in pVMGLobals (b78) if VM doesn't load */
  481. enum {
  482.     vmMorePhysicalThanVirtualErr = -628,                        /*VM could not start because there was more physical memory than virtual memory (bad setting in VM config resource)*/
  483.     vmKernelMMUInitErr            = -629,                            /*VM could not start because VM_MMUInit kernel call failed*/
  484.     vmOffErr                    = -630,                            /*VM was configured off, or command key was held down at boot*/
  485.     vmMemLckdErr                = -631,                            /*VM could not start because of a lock table conflict (only on non-SuperMario ROMs)*/
  486.     vmBadDriver                    = -632,                            /*VM could not start because the driver was incompatible*/
  487.     vmNoVectorErr                = -633                            /*VM could not start because the vector code could not load*/
  488. };
  489.  
  490. enum {
  491.                                                                 /* Database access error codes */
  492.     rcDBNull                    = -800,
  493.     rcDBValue                    = -801,
  494.     rcDBError                    = -802,
  495.     rcDBBadType                    = -803,
  496.     rcDBBreak                    = -804,
  497.     rcDBExec                    = -805,
  498.     rcDBBadSessID                = -806,
  499.     rcDBBadSessNum                = -807,                            /* bad session number for DBGetConnInfo */
  500.     rcDBBadDDEV                    = -808,                            /* bad ddev specified on DBInit */
  501.     rcDBAsyncNotSupp            = -809,                            /* ddev does not support async calls */
  502.     rcDBBadAsyncPB                = -810,                            /* tried to kill a bad pb */
  503.     rcDBNoHandler                = -811,                            /* no app handler for specified data type */
  504.     rcDBWrongVersion            = -812,                            /* incompatible versions */
  505.     rcDBPackNotInited            = -813                            /* attempt to call other routine before InitDBPack */
  506. };
  507.  
  508.  
  509. /*Help Mgr error range: -850 to -874*/
  510. enum {
  511.     hmHelpDisabled                = -850,                            /* Show Balloons mode was off, call to routine ignored */
  512.     hmBalloonAborted            = -853,                            /* Returned if mouse was moving or mouse wasn't in window port rect */
  513.     hmSameAsLastBalloon            = -854,                            /* Returned from HMShowMenuBalloon if menu & item is same as last time */
  514.     hmHelpManagerNotInited        = -855,                            /* Returned from HMGetHelpMenuHandle if help menu not setup */
  515.     hmSkippedBalloon            = -857,                            /* Returned from calls if helpmsg specified a skip balloon */
  516.     hmWrongVersion                = -858,                            /* Returned if help mgr resource was the wrong version */
  517.     hmUnknownHelpType            = -859,                            /* Returned if help msg record contained a bad type */
  518.     hmOperationUnsupported        = -861,                            /* Returned from HMShowBalloon call if bad method passed to routine */
  519.     hmNoBalloonUp                = -862,                            /* Returned from HMRemoveBalloon if no balloon was visible when call was made */
  520.     hmCloseViewActive            = -863                            /* Returned from HMRemoveBalloon if CloseView was active */
  521. };
  522.  
  523.  
  524.  
  525. enum {
  526.                                                                 /*PPC errors*/
  527.     notInitErr                    = -900,                            /*PPCToolBox not initialized*/
  528.     nameTypeErr                    = -902,                            /*Invalid or inappropriate locationKindSelector in locationName*/
  529.     noPortErr                    = -903,                            /*Unable to open port or bad portRefNum.  If you're calling */
  530.                                                                 /* AESend, this is because your application does not have */
  531.                                                                 /* the isHighLevelEventAware bit set in your SIZE resource. */
  532.     noGlobalsErr                = -904,                            /*The system is hosed, better re-boot*/
  533.     localOnlyErr                = -905,                            /*Network activity is currently disabled*/
  534.     destPortErr                    = -906,                            /*Port does not exist at destination*/
  535.     sessTableErr                = -907,                            /*Out of session tables, try again later*/
  536.     noSessionErr                = -908,                            /*Invalid session reference number*/
  537.     badReqErr                    = -909,                            /*bad parameter or invalid state for operation*/
  538.     portNameExistsErr            = -910,                            /*port is already open (perhaps in another app)*/
  539.     noUserNameErr                = -911,                            /*user name unknown on destination machine*/
  540.     userRejectErr                = -912,                            /*Destination rejected the session request*/
  541.     noMachineNameErr            = -913,                            /*user hasn't named his Macintosh in the Network Setup Control Panel*/
  542.     noToolboxNameErr            = -914,                            /*A system resource is missing, not too likely*/
  543.     noResponseErr                = -915,                            /*unable to contact destination*/
  544.     portClosedErr                = -916,                            /*port was closed*/
  545.     sessClosedErr                = -917,                            /*session was closed*/
  546.     badPortNameErr                = -919,                            /*PPCPortRec malformed*/
  547.     noDefaultUserErr            = -922,                            /*user hasn't typed in owners name in Network Setup Control Pannel*/
  548.     notLoggedInErr                = -923,                            /*The default userRefNum does not yet exist*/
  549.     noUserRefErr                = -924,                            /*unable to create a new userRefNum*/
  550.     networkErr                    = -925,                            /*An error has occurred in the network, not too likely*/
  551.     noInformErr                    = -926,                            /*PPCStart failed because destination did not have inform pending*/
  552.     authFailErr                    = -927,                            /*unable to authenticate user at destination*/
  553.     noUserRecErr                = -928,                            /*Invalid user reference number*/
  554.     badServiceMethodErr            = -930,                            /*illegal service type, or not supported*/
  555.     badLocNameErr                = -931,                            /*location name malformed*/
  556.     guestNotAllowedErr            = -932                            /*destination port requires authentication*/
  557. };
  558.  
  559. enum {
  560.     noMaskFoundErr                = -1000                            /*Icon Utilties Error*/
  561. };
  562.  
  563. enum {
  564.     nbpBuffOvr                    = -1024,                        /*Buffer overflow in LookupName*/
  565.     nbpNoConfirm                = -1025,
  566.     nbpConfDiff                    = -1026,                        /*Name confirmed at different socket*/
  567.     nbpDuplicate                = -1027,                        /*Duplicate name exists already*/
  568.     nbpNotFound                    = -1028,                        /*Name not found on remove*/
  569.     nbpNISErr                    = -1029                            /*Error trying to open the NIS*/
  570. };
  571.  
  572. enum {
  573.     aspBadVersNum                = -1066,                        /*Server cannot support this ASP version*/
  574.     aspBufTooSmall                = -1067,                        /*Buffer too small*/
  575.     aspNoMoreSess                = -1068,                        /*No more sessions on server*/
  576.     aspNoServers                = -1069,                        /*No servers at that address*/
  577.     aspParamErr                    = -1070,                        /*Parameter error*/
  578.     aspServerBusy                = -1071,                        /*Server cannot open another session*/
  579.     aspSessClosed                = -1072,                        /*Session closed*/
  580.     aspSizeErr                    = -1073,                        /*Command block too big*/
  581.     aspTooMany                    = -1074,                        /*Too many clients (server error)*/
  582.     aspNoAck                    = -1075                            /*No ack on attention request (server err)*/
  583. };
  584.  
  585. enum {
  586.     reqFailed                    = -1096,
  587.     tooManyReqs                    = -1097,
  588.     tooManySkts                    = -1098,
  589.     badATPSkt                    = -1099,
  590.     badBuffNum                    = -1100,
  591.     noRelErr                    = -1101,
  592.     cbNotFound                    = -1102,
  593.     noSendResp                    = -1103,
  594.     noDataArea                    = -1104,
  595.     reqAborted                    = -1105
  596. };
  597.  
  598. /* ADSP Error Codes */
  599. enum {
  600.                                                                 /* driver control ioResults */
  601.     errRefNum                    = -1280,                        /* bad connection refNum */
  602.     errAborted                    = -1279,                        /* control call was aborted */
  603.     errState                    = -1278,                        /* bad connection state for this operation */
  604.     errOpening                    = -1277,                        /* open connection request failed */
  605.     errAttention                = -1276,                        /* attention message too long */
  606.     errFwdReset                    = -1275,                        /* read terminated by forward reset */
  607.     errDSPQueueSize                = -1274,                        /* DSP Read/Write Queue Too small */
  608.     errOpenDenied                = -1273                            /* open connection request was denied */
  609. };
  610.  
  611.  
  612. /*--------------------------------------------------------------
  613.         Apple event manager error messages
  614. --------------------------------------------------------------*/
  615. enum {
  616.     errAECoercionFail            = -1700,                        /* bad parameter data or unable to coerce the data supplied */
  617.     errAEDescNotFound            = -1701,
  618.     errAECorruptData            = -1702,
  619.     errAEWrongDataType            = -1703,
  620.     errAENotAEDesc                = -1704,
  621.     errAEBadListItem            = -1705,                        /* the specified list item does not exist */
  622.     errAENewerVersion            = -1706,                        /* need newer version of the AppleEvent manager */
  623.     errAENotAppleEvent            = -1707,                        /* the event is not in AppleEvent format */
  624.     errAEEventNotHandled        = -1708,                        /* the AppleEvent was not handled by any handler */
  625.     errAEReplyNotValid            = -1709,                        /* AEResetTimer was passed an invalid reply parameter */
  626.     errAEUnknownSendMode        = -1710,                        /* mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown */
  627.     errAEWaitCanceled            = -1711,                        /* in AESend, the user cancelled out of wait loop for reply or receipt */
  628.     errAETimeout                = -1712,                        /* the AppleEvent timed out */
  629.     errAENoUserInteraction        = -1713,                        /* no user interaction is allowed */
  630.     errAENotASpecialFunction    = -1714,                        /* there is no special function for/with this keyword */
  631.     errAEParamMissed            = -1715,                        /* a required parameter was not accessed */
  632.     errAEUnknownAddressType        = -1716,                        /* the target address type is not known */
  633.     errAEHandlerNotFound        = -1717,                        /* no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler */
  634.     errAEReplyNotArrived        = -1718,                        /* the contents of the reply you are accessing have not arrived yet */
  635.     errAEIllegalIndex            = -1719,                        /* index is out of range in a put operation */
  636.     errAEImpossibleRange        = -1720,                        /* A range like 3rd to 2nd, or 1st to all. */
  637.     errAEWrongNumberArgs        = -1721,                        /* Logical op kAENOT used with other than 1 term */
  638.     errAEAccessorNotFound        = -1723,                        /* Accessor proc matching wantClass and containerType or wildcards not found */
  639.     errAENoSuchLogical            = -1725,                        /* Something other than AND, OR, or NOT */
  640.     errAEBadTestKey                = -1726,                        /* Test is neither typeLogicalDescriptor nor typeCompDescriptor */
  641.     errAENotAnObjSpec            = -1727,                        /* Param to AEResolve not of type 'obj ' */
  642.     errAENoSuchObject            = -1728,                        /* e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. */
  643.     errAENegativeCount            = -1729,                        /* CountProc returned negative value */
  644.     errAEEmptyListContainer        = -1730,                        /* Attempt to pass empty list as container to accessor */
  645.     errAEUnknownObjectType        = -1731,                        /* available only in version 1.0.1 or greater */
  646.     errAERecordingIsAlreadyOn    = -1732,                        /* available only in version 1.0.1 or greater */
  647.     errAEReceiveTerminate        = -1733,                        /* break out of all levels of AEReceive to the topmost (1.1 or greater) */
  648.     errAEReceiveEscapeCurrent    = -1734,                        /* break out of only lowest level of AEReceive (1.1 or greater) */
  649.     errAEEventFiltered            = -1735,                        /* event has been filtered, and should not be propogated (1.1 or greater) */
  650.     errAEDuplicateHandler        = -1736,                        /* attempt to install handler in table for identical class and id (1.1 or greater) */
  651.     errAEStreamBadNesting        = -1737,                        /* nesting violation while streaming */
  652.     errAEStreamAlreadyConverted    = -1738,                        /* attempt to convert a stream that has already been converted */
  653.     errAEDescIsNull                = -1739                            /* attempting to perform an invalid operation on a null descriptor */
  654. };
  655.  
  656. enum {
  657.     errOSASystemError            = -1750,
  658.     errOSAInvalidID                = -1751,
  659.     errOSABadStorageType        = -1752,
  660.     errOSAScriptError            = -1753,
  661.     errOSABadSelector            = -1754,
  662.     errOSASourceNotAvailable    = -1756,
  663.     errOSANoSuchDialect            = -1757,
  664.     errOSADataFormatObsolete    = -1758,
  665.     errOSADataFormatTooNew        = -1759,
  666.     errOSACorruptData            = errAECorruptData,
  667.     errOSARecordingIsAlreadyOn    = errAERecordingIsAlreadyOn,
  668.     errOSAComponentMismatch        = -1761,                        /* Parameters are from 2 different components */
  669.     errOSACantOpenComponent        = -1762                            /* Can't connect to scripting system with that ID */
  670. };
  671.  
  672.  
  673.  
  674. /* AppleEvent error definitions */
  675. enum {
  676.     errOffsetInvalid            = -1800,
  677.     errOffsetIsOutsideOfView    = -1801,
  678.     errTopOfDocument            = -1810,
  679.     errTopOfBody                = -1811,
  680.     errEndOfDocument            = -1812,
  681.     errEndOfBody                = -1813
  682. };
  683.  
  684. enum {
  685.                                                                 /* Drag Manager error codes */
  686.     badDragRefErr                = -1850,                        /* unknown drag reference */
  687.     badDragItemErr                = -1851,                        /* unknown drag item reference */
  688.     badDragFlavorErr            = -1852,                        /* unknown flavor type */
  689.     duplicateFlavorErr            = -1853,                        /* flavor type already exists */
  690.     cantGetFlavorErr            = -1854,                        /* error while trying to get flavor data */
  691.     duplicateHandlerErr            = -1855,                        /* handler already exists */
  692.     handlerNotFoundErr            = -1856,                        /* handler not found */
  693.     dragNotAcceptedErr            = -1857,                        /* drag was not accepted by receiver */
  694.     unsupportedForPlatformErr    = -1858,                        /* call is for PowerPC only */
  695.     noSuitableDisplaysErr        = -1859,                        /* no displays support translucency */
  696.     badImageRgnErr                = -1860,                        /* bad translucent image region */
  697.     badImageErr                    = -1861                            /* bad translucent image PixMap */
  698. };
  699.  
  700.  
  701. /*QuickTime errors*/
  702. enum {
  703.     couldNotResolveDataRef        = -2000,
  704.     badImageDescription            = -2001,
  705.     badPublicMovieAtom            = -2002,
  706.     cantFindHandler                = -2003,
  707.     cantOpenHandler                = -2004,
  708.     badComponentType            = -2005,
  709.     noMediaHandler                = -2006,
  710.     noDataHandler                = -2007,
  711.     invalidMedia                = -2008,
  712.     invalidTrack                = -2009,
  713.     invalidMovie                = -2010,
  714.     invalidSampleTable            = -2011,
  715.     invalidDataRef                = -2012,
  716.     invalidHandler                = -2013,
  717.     invalidDuration                = -2014,
  718.     invalidTime                    = -2015,
  719.     cantPutPublicMovieAtom        = -2016,
  720.     badEditList                    = -2017,
  721.     mediaTypesDontMatch            = -2018,
  722.     progressProcAborted            = -2019,
  723.     movieToolboxUninitialized    = -2020,
  724.     noRecordOfApp                = movieToolboxUninitialized,    /* replica */
  725.     wfFileNotFound                = -2021,
  726.     cantCreateSingleForkFile    = -2022,                        /* happens when file already exists */
  727.     invalidEditState            = -2023,
  728.     nonMatchingEditState        = -2024,
  729.     staleEditState                = -2025,
  730.     userDataItemNotFound        = -2026,
  731.     maxSizeToGrowTooSmall        = -2027,
  732.     badTrackIndex                = -2028,
  733.     trackIDNotFound                = -2029,
  734.     trackNotInMovie                = -2030,
  735.     timeNotInTrack                = -2031,
  736.     timeNotInMedia                = -2032,
  737.     badEditIndex                = -2033,
  738.     internalQuickTimeError        = -2034,
  739.     cantEnableTrack                = -2035,
  740.     invalidRect                    = -2036,
  741.     invalidSampleNum            = -2037,
  742.     invalidChunkNum                = -2038,
  743.     invalidSampleDescIndex        = -2039,
  744.     invalidChunkCache            = -2040,
  745.     invalidSampleDescription    = -2041,
  746.     dataNotOpenForRead            = -2042,
  747.     dataNotOpenForWrite            = -2043,
  748.     dataAlreadyOpenForWrite        = -2044,
  749.     dataAlreadyClosed            = -2045,
  750.     endOfDataReached            = -2046,
  751.     dataNoDataRef                = -2047,
  752.     noMovieFound                = -2048,
  753.     invalidDataRefContainer        = -2049,
  754.     badDataRefIndex                = -2050,
  755.     noDefaultDataRef            = -2051,
  756.     couldNotUseAnExistingSample    = -2052,
  757.     featureUnsupported            = -2053,
  758.     noVideoTrackInMovieErr        = -2054,                        /* QT for Windows error */
  759.     noSoundTrackInMovieErr        = -2055,                        /* QT for Windows error */
  760.     soundSupportNotAvailableErr    = -2056,                        /* QT for Windows error */
  761.     unsupportedAuxiliaryImportData = -2057,
  762.     auxiliaryExportDataUnavailable = -2058,
  763.     samplesAlreadyInMediaErr    = -2059,
  764.     noSourceTreeFoundErr        = -2060,
  765.     sourceNotFoundErr            = -2061,
  766.     movieTextNotFoundErr        = -2062,
  767.     missingRequiredParameterErr    = -2063,
  768.     invalidSpriteWorldPropertyErr = -2064,
  769.     invalidSpritePropertyErr    = -2065,
  770.     gWorldsNotSameDepthAndSizeErr = -2066,
  771.     invalidSpriteIndexErr        = -2067,
  772.     invalidImageIndexErr        = -2068,
  773.     invalidSpriteIDErr            = -2069
  774. };
  775.  
  776. enum {
  777.     internalComponentErr        = -2070,
  778.     notImplementedMusicOSErr    = -2071,
  779.     cantSendToSynthesizerOSErr    = -2072,
  780.     cantReceiveFromSynthesizerOSErr = -2073,
  781.     illegalVoiceAllocationOSErr    = -2074,
  782.     illegalPartOSErr            = -2075,
  783.     illegalChannelOSErr            = -2076,
  784.     illegalKnobOSErr            = -2077,
  785.     illegalKnobValueOSErr        = -2078,
  786.     illegalInstrumentOSErr        = -2079,
  787.     illegalControllerOSErr        = -2080,
  788.     midiManagerAbsentOSErr        = -2081,
  789.     synthesizerNotRespondingOSErr = -2082,
  790.     synthesizerOSErr            = -2083,
  791.     illegalNoteChannelOSErr        = -2084,
  792.     noteChannelNotAllocatedOSErr = -2085,
  793.     tunePlayerFullOSErr            = -2086,
  794.     tuneParseOSErr                = -2087,
  795.     noExportProcAvailableErr    = -2089,
  796.     videoOutputInUseErr            = -2090
  797. };
  798.  
  799. enum {
  800.     componentDllLoadErr            = -2091,                        /* Windows specific errors (when component is loading)*/
  801.     componentDllEntryNotFoundErr = -2092,                        /* Windows specific errors (when component is loading)*/
  802.     qtmlDllLoadErr                = -2093,                        /* Windows specific errors (when qtml is loading)*/
  803.     qtmlDllEntryNotFoundErr        = -2094,                        /* Windows specific errors (when qtml is loading)*/
  804.     qtmlUninitialized            = -2095,
  805.     unsupportedOSErr            = -2096,
  806.     unsupportedProcessorErr        = -2097
  807. };
  808.  
  809. enum {
  810.     cannotFindAtomErr            = -2101,
  811.     notLeafAtomErr                = -2102,
  812.     atomsNotOfSameTypeErr        = -2103,
  813.     atomIndexInvalidErr            = -2104,
  814.     duplicateAtomTypeAndIDErr    = -2105,
  815.     invalidAtomErr                = -2106,
  816.     invalidAtomContainerErr        = -2107,
  817.     invalidAtomTypeErr            = -2108,
  818.     cannotBeLeafAtomErr            = -2109
  819. };
  820.  
  821. enum {
  822.     digiUnimpErr                = -2201,                        /* feature unimplemented */
  823.     qtParamErr                    = -2202,                        /* bad input parameter (out of range, etc) */
  824.     matrixErr                    = -2203,                        /* bad matrix, digitizer did nothing */
  825.     notExactMatrixErr            = -2204,                        /* warning of bad matrix, digitizer did its best */
  826.     noMoreKeyColorsErr            = -2205,                        /* all key indexes in use */
  827.     notExactSizeErr                = -2206,                        /* Can’t do exact size requested */
  828.     badDepthErr                    = -2207,                        /* Can’t digitize into this depth */
  829.     noDMAErr                    = -2208,                        /* Can’t do DMA digitizing (i.e. can't go to requested dest */
  830.     badCallOrderErr                = -2209                            /* Usually due to a status call being called prior to being setup first */
  831. };
  832.  
  833.  
  834. /*  Kernel Error Codes  */
  835. enum {
  836.     kernelIncompleteErr            = -2401,
  837.     kernelCanceledErr            = -2402,
  838.     kernelOptionsErr            = -2403,
  839.     kernelPrivilegeErr            = -2404,
  840.     kernelUnsupportedErr        = -2405,
  841.     kernelObjectExistsErr        = -2406,
  842.     kernelWritePermissionErr    = -2407,
  843.     kernelReadPermissionErr        = -2408,
  844.     kernelExecutePermissionErr    = -2409,
  845.     kernelDeletePermissionErr    = -2410,
  846.     kernelExecutionLevelErr        = -2411,
  847.     kernelAttributeErr            = -2412,
  848.     kernelAsyncSendLimitErr        = -2413,
  849.     kernelAsyncReceiveLimitErr    = -2414,
  850.     kernelTimeoutErr            = -2415,
  851.     kernelInUseErr                = -2416,
  852.     kernelTerminatedErr            = -2417,
  853.     kernelExceptionErr            = -2418,
  854.     kernelIDErr                    = -2419,
  855.     kernelAlreadyFreeErr        = -2421,
  856.     kernelReturnValueErr        = -2422,
  857.     kernelUnrecoverableErr        = -2499
  858. };
  859.  
  860.  
  861.  
  862. enum {
  863.                                                                 /* Text Services Mgr error codes */
  864.     tsmComponentNoErr            = 0,                            /* component result = no error */
  865.     tsmUnsupScriptLanguageErr    = -2500,
  866.     tsmInputMethodNotFoundErr    = -2501,
  867.     tsmNotAnAppErr                = -2502,                        /* not an application error */
  868.     tsmAlreadyRegisteredErr        = -2503,                        /* want to register again error */
  869.     tsmNeverRegisteredErr        = -2504,                        /* app never registered error (not TSM aware) */
  870.     tsmInvalidDocIDErr            = -2505,                        /* invalid TSM documentation id */
  871.     tsmTSMDocBusyErr            = -2506,                        /* document is still active */
  872.     tsmDocNotActiveErr            = -2507,                        /* document is NOT active */
  873.     tsmNoOpenTSErr                = -2508,                        /* no open text service */
  874.     tsmCantOpenComponentErr        = -2509,                        /* can’t open the component */
  875.     tsmTextServiceNotFoundErr    = -2510,                        /* no text service found */
  876.     tsmDocumentOpenErr            = -2511,                        /* there are open documents */
  877.     tsmUseInputWindowErr        = -2512,                        /* not TSM aware because we are using input window */
  878.     tsmTSHasNoMenuErr            = -2513,                        /* the text service has no menu */
  879.     tsmTSNotOpenErr                = -2514,                        /* text service is not open */
  880.     tsmComponentAlreadyOpenErr    = -2515,                        /* text service already opened for the document */
  881.     tsmInputMethodIsOldErr        = -2516,                        /* returned by GetDefaultInputMethod */
  882.     tsmScriptHasNoIMErr            = -2517,                        /* script has no imput method or is using old IM */
  883.     tsmUnsupportedTypeErr        = -2518,                        /* unSupported interface type error */
  884.     tsmUnknownErr                = -2519,                        /* any other errors */
  885.     tsmInvalidContext            = -2520,                        /* Invalid TSMContext specified in call */
  886.     tsmNoHandler                = -2521,                        /* No Callback Handler exists for callback */
  887.     tsmNoMoreTokens                = -2522,                        /* No more tokens are available for the source text */
  888.     tsmNoStem                    = -2523,                        /* No stem exists for the token */
  889.     tsmDefaultIsNotInputMethodErr = -2524                        /* Current Input source is KCHR or uchr, not Input Method  (GetDefaultInputMethod) */
  890. };
  891.  
  892.  
  893. enum {
  894.                                                                 /* Mixed Mode error codes */
  895.     mmInternalError                = -2526
  896. };
  897.  
  898. /* NameRegistry error codes */
  899. enum {
  900.     nrLockedErr                    = -2536,
  901.     nrNotEnoughMemoryErr        = -2537,
  902.     nrInvalidNodeErr            = -2538,
  903.     nrNotFoundErr                = -2539,
  904.     nrNotCreatedErr                = -2540,
  905.     nrNameErr                    = -2541,
  906.     nrNotSlotDeviceErr            = -2542,
  907.     nrDataTruncatedErr            = -2543,
  908.     nrPowerErr                    = -2544,
  909.     nrPowerSwitchAbortErr        = -2545,
  910.     nrTypeMismatchErr            = -2546,
  911.     nrNotModifiedErr            = -2547,
  912.     nrOverrunErr                = -2548,
  913.     nrResultCodeBase            = -2549,
  914.     nrPathNotFound                = -2550,                        /* a path component lookup failed */
  915.     nrPathBufferTooSmall        = -2551,                        /* buffer for path is too small */
  916.     nrInvalidEntryIterationOp    = -2552,                        /* invalid entry iteration operation */
  917.     nrPropertyAlreadyExists        = -2553,                        /* property already exists */
  918.     nrIterationDone                = -2554,                        /* iteration operation is done */
  919.     nrExitedIteratorScope        = -2555,                        /* outer scope of iterator was exited */
  920.     nrTransactionAborted        = -2556,                        /* transaction was aborted */
  921.     nrCallNotSupported            = -2557                            /* This call is not available or supported on this machine */
  922. };
  923.  
  924. /**************************************************************************
  925.     Apple Script Error Codes
  926. **************************************************************************/
  927. /* Runtime errors: */
  928. enum {
  929.     errASCantConsiderAndIgnore    = -2720,
  930.     errASCantCompareMoreThan32k    = -2721,                        /* Parser/Compiler errors: */
  931.     errASTerminologyNestingTooDeep = -2760,
  932.     errASIllegalFormalParameter    = -2761,
  933.     errASParameterNotForEvent    = -2762,
  934.     errASNoResultReturned        = -2763,                        /*     The range -2780 thru -2799 is reserved for dialect specific error codes. (Error codes from different dialects may overlap.) */
  935.     errASInconsistentNames        = -2780                            /*     English errors: */
  936. };
  937.  
  938.  
  939. /* The preferred spelling for Code Fragment Manager errors:*/
  940. enum {
  941.     cfragFirstErrCode            = -2800,                        /* The first value in the range of CFM errors.*/
  942.     cfragContextIDErr            = -2800,                        /* The context ID was not valid.*/
  943.     cfragConnectionIDErr        = -2801,                        /* The connection ID was not valid.*/
  944.     cfragNoSymbolErr            = -2802,                        /* The specified symbol was not found.*/
  945.     cfragNoSectionErr            = -2803,                        /* The specified section was not found.*/
  946.     cfragNoLibraryErr            = -2804,                        /* The named library was not found.*/
  947.     cfragDupRegistrationErr        = -2805,                        /* The registration name was already in use.*/
  948.     cfragFragmentFormatErr        = -2806,                        /* A fragment's container format is unknown.*/
  949.     cfragUnresolvedErr            = -2807,                        /* A fragment had "hard" unresolved imports.*/
  950.     cfragNoPositionErr            = -2808,                        /* The registration insertion point was not found.*/
  951.     cfragNoPrivateMemErr        = -2809,                        /* Out of memory for internal bookkeeping.*/
  952.     cfragNoClientMemErr            = -2810,                        /* Out of memory for fragment mapping or section instances.*/
  953.     cfragNoIDsErr                = -2811,                        /* No more CFM IDs for contexts, connections, etc.*/
  954.     cfragInitOrderErr            = -2812,                        /* */
  955.     cfragImportTooOldErr        = -2813,                        /* An import library was too old for a client.*/
  956.     cfragImportTooNewErr        = -2814,                        /* An import library was too new for a client.*/
  957.     cfragInitLoopErr            = -2815,                        /* Circularity in required initialization order.*/
  958.     cfragInitAtBootErr            = -2816,                        /* A boot library has an initialization function.  (System 7 only)*/
  959.     cfragLibConnErr                = -2817,                        /* */
  960.     cfragCFMStartupErr            = -2818,                        /* Internal error during CFM initialization.*/
  961.     cfragCFMInternalErr            = -2819,                        /* An internal inconstistancy has been detected.*/
  962.     cfragFragmentCorruptErr        = -2820,                        /* A fragment's container was corrupt (known format).*/
  963.     cfragInitFunctionErr        = -2821,                        /* A fragment's initialization routine returned an error.*/
  964.     cfragNoApplicationErr        = -2822,                        /* No application member found in the cfrg resource.*/
  965.     cfragArchitectureErr        = -2823,                        /* A fragment has an unacceptable architecture.*/
  966.     cfragFragmentUsageErr        = -2824,                        /* A semantic error in usage of the fragment.*/
  967.     cfragFileSizeErr            = -2825,                        /* A file was too large to be mapped.*/
  968.     cfragNotClosureErr            = -2826,                        /* The closure ID was actually a connection ID.*/
  969.     cfragNoRegistrationErr        = -2827,                        /* The registration name was not found.*/
  970.     cfragContainerIDErr            = -2828,                        /* The fragment container ID was not valid.*/
  971.     cfragClosureIDErr            = -2829,                        /* The closure ID was not valid.*/
  972.     cfragAbortClosureErr        = -2830,                        /* Used by notification handlers to abort a closure.*/
  973.     cfragOutputLengthErr        = -2831,                        /* An output parameter is too small to hold the value.*/
  974.     cfragLastErrCode            = -2899                            /* The last value in the range of CFM errors.*/
  975. };
  976.  
  977. enum {
  978.                                                                 /* Reserved values for internal "warnings".*/
  979.     cfragFirstReservedCode        = -2897,
  980.     cfragReservedCode_3            = -2897,
  981.     cfragReservedCode_2            = -2898,
  982.     cfragReservedCode_1            = -2899
  983. };
  984.  
  985. #if OLDROUTINENAMES
  986. /* The old spelling for Code Fragment Manager errors, kept for compatibility:*/
  987. enum {
  988.     fragContextNotFound            = cfragContextIDErr,
  989.     fragConnectionIDNotFound    = cfragConnectionIDErr,
  990.     fragSymbolNotFound            = cfragNoSymbolErr,
  991.     fragSectionNotFound            = cfragNoSectionErr,
  992.     fragLibNotFound                = cfragNoLibraryErr,
  993.     fragDupRegLibName            = cfragDupRegistrationErr,
  994.     fragFormatUnknown            = cfragFragmentFormatErr,
  995.     fragHadUnresolveds            = cfragUnresolvedErr,
  996.     fragNoMem                    = cfragNoPrivateMemErr,
  997.     fragNoAddrSpace                = cfragNoClientMemErr,
  998.     fragNoContextIDs            = cfragNoIDsErr,
  999.     fragObjectInitSeqErr        = cfragInitOrderErr,
  1000.     fragImportTooOld            = cfragImportTooOldErr,
  1001.     fragImportTooNew            = cfragImportTooNewErr,
  1002.     fragInitLoop                = cfragInitLoopErr,
  1003.     fragInitRtnUsageErr            = cfragInitAtBootErr,
  1004.     fragLibConnErr                = cfragLibConnErr,
  1005.     fragMgrInitErr                = cfragCFMStartupErr,
  1006.     fragConstErr                = cfragCFMInternalErr,
  1007.     fragCorruptErr                = cfragFragmentCorruptErr,
  1008.     fragUserInitProcErr            = cfragInitFunctionErr,
  1009.     fragAppNotFound                = cfragNoApplicationErr,
  1010.     fragArchError                = cfragArchitectureErr,
  1011.     fragInvalidFragmentUsage    = cfragFragmentUsageErr,
  1012.     fragLastErrCode                = cfragLastErrCode
  1013. };
  1014.  
  1015. #endif  /* OLDROUTINENAMES */
  1016.  
  1017. /*Component Manager & component errors*/
  1018. enum {
  1019.     invalidComponentID            = -3000,
  1020.     validInstancesExist            = -3001,
  1021.     componentNotCaptured        = -3002,
  1022.     componentDontRegister        = -3003,
  1023.     unresolvedComponentDLLErr    = -3004
  1024. };
  1025.  
  1026. /*Translation manager & Translation components*/
  1027. enum {
  1028.     invalidTranslationPathErr    = -3025,                        /*Source type to destination type not a valid path*/
  1029.     couldNotParseSourceFileErr    = -3026,                        /*Source document does not contain source type*/
  1030.     noTranslationPathErr        = -3030,
  1031.     badTranslationSpecErr        = -3031,
  1032.     noPrefAppErr                = -3032
  1033. };
  1034.  
  1035. enum {
  1036.     buf2SmallErr                = -3101,
  1037.     noMPPErr                    = -3102,
  1038.     ckSumErr                    = -3103,
  1039.     extractErr                    = -3104,
  1040.     readQErr                    = -3105,
  1041.     atpLenErr                    = -3106,
  1042.     atpBadRsp                    = -3107,
  1043.     recNotFnd                    = -3108,
  1044.     sktClosedErr                = -3109
  1045. };
  1046.  
  1047.  
  1048. /* Color Picker errors*/
  1049. enum {
  1050.     firstPickerError            = -4000,
  1051.     invalidPickerType            = firstPickerError,
  1052.     requiredFlagsDontMatch        = -4001,
  1053.     pickerResourceError            = -4002,
  1054.     cantLoadPicker                = -4003,
  1055.     cantCreatePickerWindow        = -4004,
  1056.     cantLoadPackage                = -4005,
  1057.     pickerCantLive                = -4006,
  1058.     colorSyncNotInstalled        = -4007,
  1059.     badProfileError                = -4008,
  1060.     noHelpForItem                = -4009
  1061. };
  1062.  
  1063.  
  1064.  
  1065. /* new Folder Manager error codes */
  1066. enum {
  1067.     badFolderDescErr            = -4270,
  1068.     duplicateFolderDescErr        = -4271,
  1069.     noMoreFolderDescErr            = -4272,
  1070.     invalidFolderTypeErr        = -4273,
  1071.     duplicateRoutingErr            = -4274,
  1072.     routingNotFoundErr            = -4275,
  1073.     badRoutingSizeErr            = -4276
  1074. };
  1075.  
  1076.  
  1077.  
  1078. enum {
  1079.                                                                 /*  AFP Protocol Errors */
  1080.     afpAccessDenied                = -5000,                        /* Insufficient access privileges for operation */
  1081.     afpAuthContinue                = -5001,                        /* Further information required to complete AFPLogin call */
  1082.     afpBadUAM                    = -5002,                        /* Unknown user authentication method specified */
  1083.     afpBadVersNum                = -5003,                        /* Unknown AFP protocol version number specified */
  1084.     afpBitmapErr                = -5004,                        /* Bitmap contained bits undefined for call */
  1085.     afpCantMove                    = -5005,                        /* Move destination is offspring of source, or root was specified */
  1086.     afpDenyConflict                = -5006,                        /* Specified open/deny modes conflict with current open modes */
  1087.     afpDirNotEmpty                = -5007,                        /* Cannot delete non-empty directory */
  1088.     afpDiskFull                    = -5008,                        /* Insufficient free space on volume for operation */
  1089.     afpEofError                    = -5009,                        /* Read beyond logical end-of-file */
  1090.     afpFileBusy                    = -5010,                        /* Cannot delete an open file */
  1091.     afpFlatVol                    = -5011,                        /* Cannot create directory on specified volume */
  1092.     afpItemNotFound                = -5012,                        /* Unknown UserName/UserID or missing comment/APPL entry */
  1093.     afpLockErr                    = -5013,                        /* Some or all of requested range is locked by another user */
  1094.     afpMiscErr                    = -5014,                        /* Unexpected error encountered during execution */
  1095.     afpNoMoreLocks                = -5015,                        /* Maximum lock limit reached */
  1096.     afpNoServer                    = -5016,                        /* Server not responding */
  1097.     afpObjectExists                = -5017,                        /* Specified destination file or directory already exists */
  1098.     afpObjectNotFound            = -5018,                        /* Specified file or directory does not exist */
  1099.     afpParmErr                    = -5019,                        /* A specified parameter was out of allowable range */
  1100.     afpRangeNotLocked            = -5020,                        /* Tried to unlock range that was not locked by user */
  1101.     afpRangeOverlap                = -5021,                        /* Some or all of range already locked by same user */
  1102.     afpSessClosed                = -5022,                        /* Session closed*/
  1103.     afpUserNotAuth                = -5023,                        /* No AFPLogin call has successfully been made for this session */
  1104.     afpCallNotSupported            = -5024,                        /* Unsupported AFP call was made */
  1105.     afpObjectTypeErr            = -5025,                        /* File/Directory specified where Directory/File expected */
  1106.     afpTooManyFilesOpen            = -5026,                        /* Maximum open file count reached */
  1107.     afpServerGoingDown            = -5027,                        /* Server is shutting down */
  1108.     afpCantRename                = -5028,                        /* AFPRename cannot rename volume */
  1109.     afpDirNotFound                = -5029,                        /* Unknown directory specified */
  1110.     afpIconTypeError            = -5030,                        /* Icon size specified different from existing icon size */
  1111.     afpVolLocked                = -5031,                        /* Volume is Read-Only */
  1112.     afpObjectLocked                = -5032,                        /* Object is M/R/D/W inhibited*/
  1113.     afpContainsSharedErr        = -5033,                        /* the folder being shared contains a shared folder*/
  1114.     afpIDNotFound                = -5034,
  1115.     afpIDExists                    = -5035,
  1116.     afpDiffVolErr                = -5036,
  1117.     afpCatalogChanged            = -5037,
  1118.     afpSameObjectErr            = -5038,
  1119.     afpBadIDErr                    = -5039,
  1120.     afpPwdSameErr                = -5040,                        /* Someone tried to change their password to the same password on a mantadory password change */
  1121.     afpPwdTooShortErr            = -5041,                        /* The password being set is too short: there is a minimum length that must be met or exceeded */
  1122.     afpPwdExpiredErr            = -5042,                        /* The password being used is too old: this requires the user to change the password before log-in can continue */
  1123.     afpInsideSharedErr            = -5043,                        /* The folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder */
  1124.                                                                 /* OR the folder contains a shared folder and is being moved into the descendent of a shared folder.*/
  1125.     afpInsideTrashErr            = -5044,                        /* The folder being shared is inside the trash folder OR the shared folder is being moved into the trash folder */
  1126.                                                                 /* OR the folder is being moved to the trash and it contains a shared folder */
  1127.     afpPwdNeedsChangeErr        = -5045,                        /* The password needs to be changed*/
  1128.     afpPwdPolicyErr                = -5046,                        /* Password does not conform to servers password policy */
  1129.     afpAlreadyLoggedInErr        = -5047                            /* User has been authenticated but is already logged in from another machine (and that's not allowed on this server) */
  1130. };
  1131.  
  1132. enum {
  1133.                                                                 /*  AppleShare Client Errors */
  1134.     afpBadDirIDType                = -5060,
  1135.     afpCantMountMoreSrvre        = -5061,                        /* The Maximum number of server connections has been reached */
  1136.     afpAlreadyMounted            = -5062,                        /* The volume is already mounted */
  1137.     afpSameNodeErr                = -5063                            /* An Attempt was made to connect to a file server running on the same machine */
  1138. };
  1139.  
  1140.  
  1141.  
  1142. /*Text Engines, TSystemTextEngines, HIEditText error coded*/
  1143.  
  1144. /* NumberFormatting error codes*/
  1145. enum {
  1146.     numberFormattingNotANumberErr = -5200,
  1147.     numberFormattingOverflowInDestinationErr = -5201,
  1148.     numberFormattingBadNumberFormattingObjectErr = -5202,
  1149.     numberFormattingSpuriousCharErr = -5203,
  1150.     numberFormattingLiteralMissingErr = -5204,
  1151.     numberFormattingDelimiterMissingErr = -5205,
  1152.     numberFormattingEmptyFormatErr = -5206,
  1153.     numberFormattingBadFormatErr = -5207,
  1154.     numberFormattingBadOptionsErr = -5028,
  1155.     numberFormattingBadTokenErr    = -5209,
  1156.     numberFormattingUnOrderedCurrencyRangeErr = -5210,
  1157.     numberFormattingBadCurrencyPositionErr = -5211,
  1158.     numberFormattingNotADigitErr = -5212,                        /* deprecated misspelled versions:*/
  1159.     numberFormattingUnOrdredCurrencyRangeErr = -5210,
  1160.     numberFortmattingNotADigitErr = -5212
  1161. };
  1162.  
  1163. /* TextParser error codes*/
  1164. enum {
  1165.     textParserBadParamErr        = -5220,
  1166.     textParserObjectNotFoundErr    = -5221,
  1167.     textParserBadTokenValueErr    = -5222,
  1168.     textParserBadParserObjectErr = -5223,
  1169.     textParserParamErr            = -5224,
  1170.     textParserNoMoreTextErr        = -5225,
  1171.     textParserBadTextLanguageErr = -5226,
  1172.     textParserBadTextEncodingErr = -5227,
  1173.     textParserNoSuchTokenFoundErr = -5228,
  1174.     textParserNoMoreTokensErr    = -5229
  1175. };
  1176.  
  1177. enum {
  1178.     errUnknownAttributeTag        = -5240,
  1179.     errMarginWilllNotFit        = -5241,
  1180.     errNotInImagingMode            = -5242,
  1181.     errAlreadyInImagingMode        = -5243,
  1182.     errEngineNotFound            = -5244,
  1183.     errIteratorReachedEnd        = -5245,
  1184.     errInvalidRange                = -5246,
  1185.     errOffsetNotOnElementBounday = -5247,
  1186.     errNoHiliteText                = -5248,
  1187.     errEmptyScrap                = -5249,
  1188.     errReadOnlyText                = -5250,
  1189.     errUnknownElement            = -5251,
  1190.     errNonContiuousAttribute    = -5252,
  1191.     errCannotUndo                = -5253
  1192. };
  1193.  
  1194.  
  1195. enum {
  1196.                                                                 /*Gestalt error codes*/
  1197.     gestaltUnknownErr            = -5550,                        /*value returned if Gestalt doesn't know the answer*/
  1198.     gestaltUndefSelectorErr        = -5551,                        /*undefined selector was passed to Gestalt*/
  1199.     gestaltDupSelectorErr        = -5552,                        /*tried to add an entry that already existed*/
  1200.     gestaltLocationErr            = -5553                            /*gestalt function ptr wasn't in sysheap*/
  1201. };
  1202.  
  1203.  
  1204.  
  1205. /* Collection Manager errors */
  1206. enum {
  1207.     collectionItemLockedErr        = -5750,
  1208.     collectionItemNotFoundErr    = -5751,
  1209.     collectionIndexRangeErr        = -5752,
  1210.     collectionVersionErr        = -5753
  1211. };
  1212.  
  1213.  
  1214. enum {
  1215.                                                                 /* Display Manager error codes (-6220...-6269)*/
  1216.     kDMGenErr                    = -6220,                        /*Unexpected Error*/
  1217.                                                                 /* Mirroring-Specific Errors */
  1218.     kDMMirroringOnAlready        = -6221,                        /*Returned by all calls that need mirroring to be off to do their thing.*/
  1219.     kDMWrongNumberOfDisplays    = -6222,                        /*Can only handle 2 displays for now.*/
  1220.     kDMMirroringBlocked            = -6223,                        /*DMBlockMirroring() has been called.*/
  1221.     kDMCantBlock                = -6224,                        /*Mirroring is already on, can’t Block now (call DMUnMirror() first).*/
  1222.     kDMMirroringNotOn            = -6225,                        /*Returned by all calls that need mirroring to be on to do their thing.*/
  1223.                                                                 /* Other Display Manager Errors */
  1224.     kSysSWTooOld                = -6226,                        /*Missing critical pieces of System Software.*/
  1225.     kDMSWNotInitializedErr        = -6227,                        /*Required software not initialized (eg windowmanager or display mgr).*/
  1226.     kDMDriverNotDisplayMgrAwareErr = -6228,                        /*Video Driver does not support display manager.*/
  1227.     kDMDisplayNotFoundErr        = -6229,                        /*Could not find item (will someday remove).*/
  1228.     kDMNotFoundErr                = -6229,                        /*Could not find item.*/
  1229.     kDMDisplayAlreadyInstalledErr = -6230,                        /*Attempt to add an already installed display.*/
  1230.     kDMMainDisplayCannotMoveErr    = -6231,                        /*Trying to move main display (or a display mirrored to it) */
  1231.     kDMNoDeviceTableclothErr    = -6231,                        /*obsolete*/
  1232.     kDMFoundErr                    = -6232                            /*Did not proceed because we found an item*/
  1233. };
  1234.  
  1235.  
  1236. /* Error & status codes for general text and text encoding conversion*/
  1237.  
  1238. enum {
  1239.                                                                 /* general text errors*/
  1240.     kTextUnsupportedEncodingErr    = -8738,                        /* specified encoding not supported for this operation*/
  1241.     kTextMalformedInputErr        = -8739,                        /* in DBCS, for example, high byte followed by invalid low byte*/
  1242.     kTextUndefinedElementErr    = -8740,                        /* text conversion errors*/
  1243.     kTECMissingTableErr            = -8745,
  1244.     kTECTableChecksumErr        = -8746,
  1245.     kTECTableFormatErr            = -8747,
  1246.     kTECCorruptConverterErr        = -8748,                        /* invalid converter object reference*/
  1247.     kTECNoConversionPathErr        = -8749,
  1248.     kTECBufferBelowMinimumSizeErr = -8750,                        /* output buffer too small to allow processing of first input text element*/
  1249.     kTECArrayFullErr            = -8751,                        /* supplied name buffer or TextRun, TextEncoding, or UnicodeMapping array is too small*/
  1250.     kTECBadTextRunErr            = -8752,
  1251.     kTECPartialCharErr            = -8753,                        /* input buffer ends in the middle of a multibyte character, conversion stopped*/
  1252.     kTECUnmappableElementErr    = -8754,
  1253.     kTECIncompleteElementErr    = -8755,                        /* text element may be incomplete or is too long for internal buffers*/
  1254.     kTECDirectionErr            = -8756,                        /* direction stack overflow, etc.*/
  1255.     kTECGlobalsUnavailableErr    = -8770,                        /* globals have already been deallocated (premature TERM)*/
  1256.     kTECItemUnavailableErr        = -8771,                        /* item (e.g. name) not available for specified region (& encoding if relevant)*/
  1257.                                                                 /* text conversion status codes*/
  1258.     kTECUsedFallbacksStatus        = -8783,
  1259.     kTECNeedFlushStatus            = -8784,
  1260.     kTECOutputBufferFullStatus    = -8785,                        /* output buffer has no room for conversion of next input text element (partial conversion)*/
  1261.                                                                 /* deprecated error & status codes for low-level converter*/
  1262.     unicodeChecksumErr            = -8769,
  1263.     unicodeNoTableErr            = -8768,
  1264.     unicodeVariantErr            = -8767,
  1265.     unicodeFallbacksErr            = -8766,
  1266.     unicodePartConvertErr        = -8765,
  1267.     unicodeBufErr                = -8764,
  1268.     unicodeCharErr                = -8763,
  1269.     unicodeElementErr            = -8762,
  1270.     unicodeNotFoundErr            = -8761,
  1271.     unicodeTableFormatErr        = -8760,
  1272.     unicodeDirectionErr            = -8759,
  1273.     unicodeContextualErr        = -8758,
  1274.     unicodeTextEncodingDataErr    = -8757
  1275. };
  1276.  
  1277.  
  1278.  
  1279. enum {
  1280.     codecErr                    = -8960,
  1281.     noCodecErr                    = -8961,
  1282.     codecUnimpErr                = -8962,
  1283.     codecSizeErr                = -8963,
  1284.     codecScreenBufErr            = -8964,
  1285.     codecImageBufErr            = -8965,
  1286.     codecSpoolErr                = -8966,
  1287.     codecAbortErr                = -8967,
  1288.     codecWouldOffscreenErr        = -8968,
  1289.     codecBadDataErr                = -8969,
  1290.     codecDataVersErr            = -8970,
  1291.     codecExtensionNotFoundErr    = -8971,
  1292.     scTypeNotFoundErr            = codecExtensionNotFoundErr,
  1293.     codecConditionErr            = -8972,
  1294.     codecOpenErr                = -8973,
  1295.     codecCantWhenErr            = -8974,
  1296.     codecCantQueueErr            = -8975,
  1297.     codecNothingToBlitErr        = -8976,
  1298.     codecNoMemoryPleaseWaitErr    = -8977,
  1299.     codecDisabledErr            = -8978,                        /* codec disabled itself -- pass codecFlagReenable to reset*/
  1300.     codecNeedToFlushChainErr    = -8979,
  1301.     lockPortBitsBadSurfaceErr    = -8980,
  1302.     lockPortBitsWindowMovedErr    = -8981,
  1303.     lockPortBitsWindowResizedErr = -8982,
  1304.     lockPortBitsWindowClippedErr = -8983,
  1305.     lockPortBitsBadPortErr        = -8984,
  1306.     lockPortBitsSurfaceLostErr    = -8985,
  1307.     codecParameterDialogConfirm    = -8986,
  1308.     codecNeedAccessKeyErr        = -8987,                        /* codec needs password in order to decompress*/
  1309.     codecOffscreenFailedErr        = -8988,
  1310.     codecDroppedFrameErr        = -8989                            /* returned from ImageCodecDrawBand */
  1311. };
  1312.  
  1313. enum {
  1314.     noDeviceForChannel            = -9400,
  1315.     grabTimeComplete            = -9401,
  1316.     cantDoThatInCurrentMode        = -9402,
  1317.     notEnoughMemoryToGrab        = -9403,
  1318.     notEnoughDiskSpaceToGrab    = -9404,
  1319.     couldntGetRequiredComponent    = -9405,
  1320.     badSGChannel                = -9406,
  1321.     seqGrabInfoNotAvailable        = -9407,
  1322.     deviceCantMeetRequest        = -9408,
  1323.     badControllerHeight            = -9994,
  1324.     editingNotAllowed            = -9995,
  1325.     controllerBoundsNotExact    = -9996,
  1326.     cannotSetWidthOfAttachedController = -9997,
  1327.     controllerHasFixedHeight    = -9998,
  1328.     cannotMoveAttachedController = -9999
  1329. };
  1330.  
  1331. /* AERegistry Errors */
  1332. enum {
  1333.     errAEBadKeyForm                = -10002,
  1334.     errAECantHandleClass        = -10010,
  1335.     errAECantSupplyType            = -10009,
  1336.     errAECantUndo                = -10015,
  1337.     errAEEventFailed            = -10000,
  1338.     errAEIndexTooLarge            = -10007,
  1339.     errAEInTransaction            = -10011,
  1340.     errAELocalOnly                = -10016,
  1341.     errAENoSuchTransaction        = -10012,
  1342.     errAENotAnElement            = -10008,
  1343.     errAENotASingleObject        = -10014,
  1344.     errAENotModifiable            = -10003,
  1345.     errAENoUserSelection        = -10013,
  1346.     errAEPrivilegeError            = -10004,
  1347.     errAEReadDenied                = -10005,
  1348.     errAETypeError                = -10001,
  1349.     errAEWriteDenied            = -10006,
  1350.     errAENotAnEnumMember        = -10023,                        /* enumerated value in SetData is not allowed for this property */
  1351.     errAECantPutThatThere        = -10024,                        /* in make new, duplicate, etc. class can't be an element of container */
  1352.     errAEPropertiesClash        = -10025                        /* illegal combination of properties settings for Set Data, make new, or duplicate */
  1353. };
  1354.  
  1355. /* TELErr */
  1356. enum {
  1357.     telGenericError                = -1,
  1358.     telNoErr                    = 0,
  1359.     telNoTools                    = 8,                            /* no telephone tools found in extension folder */
  1360.     telBadTermErr                = -10001,                        /* invalid TELHandle or handle not found*/
  1361.     telBadDNErr                    = -10002,                        /* TELDNHandle not found or invalid */
  1362.     telBadCAErr                    = -10003,                        /* TELCAHandle not found or invalid */
  1363.     telBadHandErr                = -10004,                        /* bad handle specified */
  1364.     telBadProcErr                = -10005,                        /* bad msgProc specified */
  1365.     telCAUnavail                = -10006,                        /* a CA is not available */
  1366.     telNoMemErr                    = -10007,                        /* no memory to allocate handle */
  1367.     telNoOpenErr                = -10008,                        /* unable to open terminal */
  1368.     telBadHTypeErr                = -10010,                        /* bad hook type specified */
  1369.     telHTypeNotSupp                = -10011,                        /* hook type not supported by this tool */
  1370.     telBadLevelErr                = -10012,                        /* bad volume level setting */
  1371.     telBadVTypeErr                = -10013,                        /* bad volume type error */
  1372.     telVTypeNotSupp                = -10014,                        /* volume type not supported by this tool*/
  1373.     telBadAPattErr                = -10015,                        /* bad alerting pattern specified */
  1374.     telAPattNotSupp                = -10016,                        /* alerting pattern not supported by tool*/
  1375.     telBadIndex                    = -10017,                        /* bad index specified */
  1376.     telIndexNotSupp                = -10018,                        /* index not supported by this tool */
  1377.     telBadStateErr                = -10019,                        /* bad device state specified */
  1378.     telStateNotSupp                = -10020,                        /* device state not supported by tool */
  1379.     telBadIntExt                = -10021,                        /* bad internal external error */
  1380.     telIntExtNotSupp            = -10022,                        /* internal external type not supported by this tool */
  1381.     telBadDNDType                = -10023,                        /* bad DND type specified */
  1382.     telDNDTypeNotSupp            = -10024,                        /* DND type is not supported by this tool */
  1383.     telFeatNotSub                = -10030,                        /* feature not subscribed */
  1384.     telFeatNotAvail                = -10031,                        /* feature subscribed but not available */
  1385.     telFeatActive                = -10032,                        /* feature already active */
  1386.     telFeatNotSupp                = -10033,                        /* feature program call not supported by this tool */
  1387.     telConfLimitErr                = -10040,                        /* limit specified is too high for this configuration */
  1388.     telConfNoLimit                = -10041,                        /* no limit was specified but required*/
  1389.     telConfErr                    = -10042,                        /* conference was not prepared */
  1390.     telConfRej                    = -10043,                        /* conference request was rejected */
  1391.     telTransferErr                = -10044,                        /* transfer not prepared */
  1392.     telTransferRej                = -10045,                        /* transfer request rejected */
  1393.     telCBErr                    = -10046,                        /* call back feature not set previously */
  1394.     telConfLimitExceeded        = -10047,                        /* attempt to exceed switch conference limits */
  1395.     telBadDNType                = -10050,                        /* DN type invalid */
  1396.     telBadPageID                = -10051,                        /* bad page ID specified*/
  1397.     telBadIntercomID            = -10052,                        /* bad intercom ID specified */
  1398.     telBadFeatureID                = -10053,                        /* bad feature ID specified */
  1399.     telBadFwdType                = -10054,                        /* bad fwdType specified */
  1400.     telBadPickupGroupID            = -10055,                        /* bad pickup group ID specified */
  1401.     telBadParkID                = -10056,                        /* bad park id specified */
  1402.     telBadSelect                = -10057,                        /* unable to select or deselect DN */
  1403.     telBadBearerType            = -10058,                        /* bad bearerType specified */
  1404.     telBadRate                    = -10059,                        /* bad rate specified */
  1405.     telDNTypeNotSupp            = -10060,                        /* DN type not supported by tool */
  1406.     telFwdTypeNotSupp            = -10061,                        /* forward type not supported by tool */
  1407.     telBadDisplayMode            = -10062,                        /* bad display mode specified */
  1408.     telDisplayModeNotSupp        = -10063,                        /* display mode not supported by tool */
  1409.     telNoCallbackRef            = -10064,                        /* no call back reference was specified, but is required */
  1410.     telAlreadyOpen                = -10070,                        /* terminal already open */
  1411.     telStillNeeded                = -10071,                        /* terminal driver still needed by someone else */
  1412.     telTermNotOpen                = -10072,                        /* terminal not opened via TELOpenTerm */
  1413.     telCANotAcceptable            = -10080,                        /* CA not "acceptable" */
  1414.     telCANotRejectable            = -10081,                        /* CA not "rejectable" */
  1415.     telCANotDeflectable            = -10082,                        /* CA not "deflectable" */
  1416.     telPBErr                    = -10090,                        /* parameter block error, bad format */
  1417.     telBadFunction                = -10091,                        /* bad msgCode specified */
  1418.                                                                 /*    telNoTools            = -10101,           unable to find any telephone tools */
  1419.     telNoSuchTool                = -10102,                        /* unable to find tool with name specified */
  1420.     telUnknownErr                = -10103,                        /* unable to set config */
  1421.     telNoCommFolder                = -10106,                        /* Communications/Extensions ƒ not found */
  1422.     telInitFailed                = -10107,                        /* initialization failed */
  1423.     telBadCodeResource            = -10108,                        /* code resource not found */
  1424.     telDeviceNotFound            = -10109,                        /* device not found */
  1425.     telBadProcID                = -10110,                        /* invalid procID */
  1426.     telValidateFailed            = -10111,                        /* telValidate failed */
  1427.     telAutoAnsNotOn                = -10112,                        /* autoAnswer in not turned on */
  1428.     telDetAlreadyOn                = -10113,                        /* detection is already turned on */
  1429.     telBadSWErr                    = -10114,                        /* Software not installed properly */
  1430.     telBadSampleRate            = -10115,                        /* incompatible sample rate */
  1431.     telNotEnoughdspBW            = -10116                        /* not enough real-time for allocation */
  1432. };
  1433.  
  1434.  
  1435. enum {
  1436.                                                                 /*Power Manager Errors*/
  1437.     pmBusyErr                    = -13000,                        /*Power Mgr never ready to start handshake*/
  1438.     pmReplyTOErr                = -13001,                        /*Timed out waiting for reply*/
  1439.     pmSendStartErr                = -13002,                        /*during send, pmgr did not start hs*/
  1440.     pmSendEndErr                = -13003,                        /*during send, pmgr did not finish hs*/
  1441.     pmRecvStartErr                = -13004,                        /*during receive, pmgr did not start hs*/
  1442.     pmRecvEndErr                = -13005                        /*during receive, pmgr did not finish hs configured for this connection*/
  1443. };
  1444.  
  1445. /* Debugging library errors */
  1446. enum {
  1447.     debuggingExecutionContextErr = -13880,                        /* routine cannot be called at this time */
  1448.     debuggingDuplicateSignatureErr = -13881,                    /* componentSignature already registered */
  1449.     debuggingDuplicateOptionErr    = -13882,                        /* optionSelectorNum already registered */
  1450.     debuggingInvalidSignatureErr = -13883,                        /* componentSignature not registered */
  1451.     debuggingInvalidOptionErr    = -13884,                        /* optionSelectorNum is not registered */
  1452.     debuggingInvalidNameErr        = -13885,                        /* componentName or optionName is invalid (NULL) */
  1453.     debuggingNoCallbackErr        = -13886,                        /* debugging component has no callback */
  1454.     debuggingNoMatchErr            = -13887                        /* debugging component or option not found at this index */
  1455. };
  1456.  
  1457. /*Possible errors from the PrinterStatus bottleneck*/
  1458. enum {
  1459.     printerStatusOpCodeNotSupportedErr = -25280
  1460. };
  1461.  
  1462. /* UnicodeUtilities error & status codes*/
  1463. enum {
  1464.     kUCOutputBufferTooSmall        = -25340                        /* Output buffer too small for Unicode string result*/
  1465. };
  1466.  
  1467. /* Multiprocessing API error codes*/
  1468. enum {
  1469.     kMPIterationEndErr            = -29275,
  1470.     kMPPrivilegedErr            = -29276,
  1471.     kMPProcessCreatedErr        = -29288,
  1472.     kMPProcessTerminatedErr        = -29289,
  1473.     kMPTaskCreatedErr            = -29290,
  1474.     kMPTaskBlockedErr            = -29291,
  1475.     kMPTaskStoppedErr            = -29292,                        /* A convention used with MPThrowException.*/
  1476.     kMPBlueBlockingErr            = -29293,
  1477.     kMPDeletedErr                = -29295,
  1478.     kMPTimeoutErr                = -29296,
  1479.     kMPTaskAbortedErr            = -29297,
  1480.     kMPInsufficientResourcesErr    = -29298,
  1481.     kMPInvalidIDErr                = -29299
  1482. };
  1483.  
  1484. enum {
  1485.     kMPNanokernelNeedsMemoryErr    = -29294
  1486. };
  1487.  
  1488. /* StringCompare error codes (in TextUtils range)*/
  1489. enum {
  1490.     kCollateAttributesNotFoundErr = -29500,
  1491.     kCollateInvalidOptions        = -29501,
  1492.     kCollateMissingUnicodeTableErr = -29502,
  1493.     kCollateUnicodeConvertFailedErr = -29503,
  1494.     kCollatePatternNotFoundErr    = -29504,
  1495.     kCollateInvalidChar            = -29505,
  1496.     kCollateBufferTooSmall        = -29506,
  1497.     kCollateInvalidCollationRef    = -29507
  1498. };
  1499.  
  1500.  
  1501. /* TextObjects error codes*/
  1502. enum {
  1503.     textObjInvalidIndexErr        = -29580,
  1504.     textObjBufferTooSmallErr    = -29581,
  1505.     textObjObjectTooSmallErr    = -29582,
  1506.     textObjTextConversionFailedErr = -29583,
  1507.     textObjMalformedObjectErr    = -29584,
  1508.     textObjAnnotationNotFoundErr = -29585,
  1509.     textObjMoreAnnotationsErr    = -29586,
  1510.     textObjLanguageChangedErr    = -29587,
  1511.     textObjFontNotFoundErr        = -29599
  1512. };
  1513.  
  1514.  
  1515. /* Settings Manager (formerly known as Location Manager) Errors */
  1516. enum {
  1517.     kALMInternalErr                = -30049,
  1518.     kALMGroupNotFoundErr        = -30048,
  1519.     kALMNoSuchModuleErr            = -30047,
  1520.     kALMModuleCommunicationErr    = -30046,
  1521.     kALMDuplicateModuleErr        = -30045,
  1522.     kALMInstallationErr            = -30044,
  1523.     kALMDeferSwitchErr            = -30043,
  1524.     kALMRebootFlagsLevelErr        = -30042
  1525. };
  1526.  
  1527. enum {
  1528.     kALMLocationNotFoundErr        = kALMGroupNotFoundErr            /* Old name */
  1529. };
  1530.  
  1531. /* QuickTime VR Errors */
  1532. enum {
  1533.     notAQTVRMovieErr            = -30540,
  1534.     constraintReachedErr        = -30541,
  1535.     callNotSupportedByNodeErr    = -30542,
  1536.     selectorNotSupportedByNodeErr = -30543,
  1537.     invalidNodeIDErr            = -30544,
  1538.     invalidViewStateErr            = -30545,
  1539.     timeNotInViewErr            = -30546,
  1540.     propertyNotSupportedByNodeErr = -30547,
  1541.     settingNotSupportedByNodeErr = -30548,
  1542.     limitReachedErr                = -30549,
  1543.     invalidNodeFormatErr        = -30550,
  1544.     invalidHotSpotIDErr            = -30551,
  1545.     noMemoryNodeFailedInitialize = -30552,
  1546.     streamingNodeNotReadyErr    = -30553
  1547. };
  1548.  
  1549.  
  1550. enum {
  1551.     badComponentInstance        = (long)0x80008001,
  1552.     badComponentSelector        = (long)0x80008002
  1553. };
  1554.  
  1555.  
  1556.  
  1557. enum {
  1558.     dsBusError                    = 1,                            /*bus error*/
  1559.     dsAddressErr                = 2,                            /*address error*/
  1560.     dsIllInstErr                = 3,                            /*illegal instruction error*/
  1561.     dsZeroDivErr                = 4,                            /*zero divide error*/
  1562.     dsChkErr                    = 5,                            /*check trap error*/
  1563.     dsOvflowErr                    = 6,                            /*overflow trap error*/
  1564.     dsPrivErr                    = 7,                            /*privilege violation error*/
  1565.     dsTraceErr                    = 8,                            /*trace mode error*/
  1566.     dsLineAErr                    = 9,                            /*line 1010 trap error*/
  1567.     dsLineFErr                    = 10,                            /*line 1111 trap error*/
  1568.     dsMiscErr                    = 11,                            /*miscellaneous hardware exception error*/
  1569.     dsCoreErr                    = 12,                            /*unimplemented core routine error*/
  1570.     dsIrqErr                    = 13,                            /*uninstalled interrupt error*/
  1571.     dsIOCoreErr                    = 14,                            /*IO Core Error*/
  1572.     dsLoadErr                    = 15,                            /*Segment Loader Error*/
  1573.     dsFPErr                        = 16,                            /*Floating point error*/
  1574.     dsNoPackErr                    = 17,                            /*package 0 not present*/
  1575.     dsNoPk1                        = 18,                            /*package 1 not present*/
  1576.     dsNoPk2                        = 19                            /*package 2 not present*/
  1577. };
  1578.  
  1579. enum {
  1580.     dsNoPk3                        = 20,                            /*package 3 not present*/
  1581.     dsNoPk4                        = 21,                            /*package 4 not present*/
  1582.     dsNoPk5                        = 22,                            /*package 5 not present*/
  1583.     dsNoPk6                        = 23,                            /*package 6 not present*/
  1584.     dsNoPk7                        = 24,                            /*package 7 not present*/
  1585.     dsMemFullErr                = 25,                            /*out of memory!*/
  1586.     dsBadLaunch                    = 26,                            /*can't launch file*/
  1587.     dsFSErr                        = 27,                            /*file system map has been trashed*/
  1588.     dsStknHeap                    = 28,                            /*stack has moved into application heap*/
  1589.     negZcbFreeErr                = 33,                            /*ZcbFree has gone negative*/
  1590.     dsFinderErr                    = 41,                            /*can't load the Finder error*/
  1591.     dsBadSlotInt                = 51,                            /*unserviceable slot interrupt*/
  1592.     dsBadSANEOpcode                = 81,                            /*bad opcode given to SANE Pack4*/
  1593.     dsBadPatchHeader            = 83,                            /*SetTrapAddress saw the “come-from” header*/
  1594.     menuPrgErr                    = 84,                            /*happens when a menu is purged*/
  1595.     dsMBarNFnd                    = 85,                            /*Menu Manager Errors*/
  1596.     dsHMenuFindErr                = 86,                            /*Menu Manager Errors*/
  1597.     dsWDEFNotFound                = 87,                            /*could not load WDEF*/
  1598.     dsCDEFNotFound                = 88,                            /*could not load CDEF*/
  1599.     dsMDEFNotFound                = 89                            /*could not load MDEF*/
  1600. };
  1601.  
  1602. enum {
  1603.     dsNoFPU                        = 90,                            /*an FPU instruction was executed and the machine doesn’t have one*/
  1604.     dsNoPatch                    = 98,                            /*Can't patch for particular Model Mac*/
  1605.     dsBadPatch                    = 99,                            /*Can't load patch resource*/
  1606.     dsParityErr                    = 101,                            /*memory parity error*/
  1607.     dsOldSystem                    = 102,                            /*System is too old for this ROM*/
  1608.     ds32BitMode                    = 103,                            /*booting in 32-bit on a 24-bit sys*/
  1609.     dsNeedToWriteBootBlocks        = 104,                            /*need to write new boot blocks*/
  1610.     dsNotEnoughRAMToBoot        = 105,                            /*must have at least 1.5MB of RAM to boot 7.0*/
  1611.     dsBufPtrTooLow                = 106,                            /*bufPtr moved too far during boot*/
  1612.     dsVMDeferredFuncTableFull    = 112,                            /*VM's DeferUserFn table is full*/
  1613.     dsVMBadBackingStore            = 113,                            /*Error occurred while reading or writing the VM backing-store file*/
  1614.     dsCantHoldSystemHeap        = 114,                            /*Unable to hold the system heap during boot*/
  1615.     dsSystemRequiresPowerPC        = 116,                            /*Startup disk requires PowerPC*/
  1616.     dsGibblyMovedToDisabledFolder = 117,                        /* For debug builds only, signals that active gibbly was disabled during boot. */
  1617.     dsUnBootableSystem            = 118,                            /* Active system file will not boot on this system because it was designed only to boot from a CD. */
  1618.     dsLostConnectionToNetworkDisk = 121,                        /* Lost communication with Netboot server */
  1619.     dsWriteToSupervisorStackGuardPage = 128,                    /*the supervisor stack overflowed into its guard page */
  1620.     dsReinsert                    = 30,                            /*request user to reinsert off-line volume*/
  1621.     shutDownAlert                = 42,                            /*handled like a shutdown error*/
  1622.     dsShutDownOrRestart            = 20000,                        /*user choice between ShutDown and Restart*/
  1623.     dsSwitchOffOrRestart        = 20001,                        /*user choice between switching off and Restart*/
  1624.     dsForcedQuit                = 20002,                        /*allow the user to ExitToShell, return if Cancel*/
  1625.     dsRemoveDisk                = 20003,                        /*request user to remove disk from manual eject drive*/
  1626.     dsDirtyDisk                    = 20004,                        /*request user to return a manually-ejected dirty disk*/
  1627.     dsShutDownOrResume            = 20109,                        /*allow user to return to Finder or ShutDown*/
  1628.     dsSCSIWarn                    = 20010,                        /*Portable SCSI adapter warning.*/
  1629.     dsMBSysError                = 29200,                        /*Media Bay replace warning.*/
  1630.     dsMBFlpySysError            = 29201,                        /*Media Bay, floppy replace warning.*/
  1631.     dsMBATASysError                = 29202,                        /*Media Bay, ATA replace warning.*/
  1632.     dsMBATAPISysError            = 29203,                        /*Media Bay, ATAPI replace warning...*/
  1633.     dsMBExternFlpySysError        = 29204,                        /*Media Bay, external floppy drive reconnect warning*/
  1634.     dsPCCardATASysError            = 29205                            /*PCCard has been ejected while still in use. */
  1635. };
  1636.  
  1637. /*
  1638.       System Errors that are used after MacsBug is loaded to put up dialogs since these should not 
  1639.       cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add 
  1640.       to an existing dialog without putting up a whole new dialog 
  1641. */
  1642. enum {
  1643.     dsNoExtsMacsBug                = -1,                            /*not a SysErr, just a placeholder */
  1644.     dsNoExtsDisassembler        = -2,                            /*not a SysErr, just a placeholder */
  1645.     dsMacsBugInstalled            = -10,                            /*say “MacsBug Installed”*/
  1646.     dsDisassemblerInstalled        = -11,                            /*say “Disassembler Installed”*/
  1647.     dsExtensionsDisabled        = -13,                            /*say “Extensions Disabled”*/
  1648.     dsGreeting                    = 40,                            /*welcome to Macintosh greeting*/
  1649.     dsSysErr                    = 32767,                        /*general system error*/
  1650.                                                                 /*old names here for compatibility’s sake*/
  1651.     WDEFNFnd                    = dsWDEFNotFound
  1652. };
  1653.  
  1654. enum {
  1655.     CDEFNFnd                    = dsCDEFNotFound,
  1656.     dsNotThe1                    = 31,                            /*not the disk I wanted*/
  1657.     dsBadStartupDisk            = 42,                            /*unable to mount boot volume (sad Mac only)*/
  1658.     dsSystemFileErr                = 43,                            /*can’t find System file to open (sad Mac only)*/
  1659.     dsHD20Installed                = -12,                            /*say “HD20 Startup”*/
  1660.     mBarNFnd                    = -126,                            /*system error code for MBDF not found*/
  1661.     hMenuFindErr                = -127,                            /*could not find HMenu's parent in MenuKey*/
  1662.     userBreak                    = -490,                            /*user debugger break*/
  1663.     strUserBreak                = -491,                            /*user debugger break; display string on stack*/
  1664.     exUserBreak                    = -492                            /*user debugger break; execute debugger commands on stack*/
  1665. };
  1666.  
  1667.  
  1668. enum {
  1669.                                                                 /* DS Errors which are specific to the new runtime model introduced with PowerPC */
  1670.     dsBadLibrary                = 1010,                            /* Bad shared library */
  1671.     dsMixedModeFailure            = 1011                            /* Internal Mixed Mode Failure */
  1672. };
  1673.  
  1674.  
  1675.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  1676.                                                                                             #pragma parameter SysError(__D0)
  1677.                                                                                             #endif
  1678. EXTERN_API( void )
  1679. SysError                        (short                     errorCode)                            ONEWORDINLINE(0xA9C9);
  1680.  
  1681.  
  1682.  
  1683.  
  1684. #if PRAGMA_STRUCT_ALIGN
  1685.     #pragma options align=reset
  1686. #elif PRAGMA_STRUCT_PACKPUSH
  1687.     #pragma pack(pop)
  1688. #elif PRAGMA_STRUCT_PACK
  1689.     #pragma pack()
  1690. #endif
  1691.  
  1692. #ifdef PRAGMA_IMPORT_OFF
  1693. #pragma import off
  1694. #elif PRAGMA_IMPORT
  1695. #pragma import reset
  1696. #endif
  1697.  
  1698. #ifdef __cplusplus
  1699. }
  1700. #endif
  1701.  
  1702. #endif /* __ERRORS__ */
  1703.  
  1704.